- install composer
- install Docker-compose in your linux distribution (optional)
To deploy the project, run commands below in the project root directory.
PS: you can create "sail" alias
$ composer install
$ ./vendor/bin/sail npm install
$ cp .env.example .env
$ ./vendor/bin/sail artisan key:generate
$ ./vendor/bin/sail artisan migrate
$ ./vendor/bin/sail artisan storage:link
$ ./vendor/bin/sail npm run dev
to build and run containers execute:
$ ./vendor/bin/sail up
if apache2 is running on port 80 run sudo service apache2 stop
before retry
Now your application is available on http://localhost
To deploy the project without Docker, run commands below in the project root directory.
PS: you can create "sail" alias
$ composer install
$ npm install
$ cp .env.example .env
$ php artisan key:generate
$ php artisan migrate
$ php artisan storage:link
$ npm run dev
to run project:
$ php artisan serve