Web application built on laravel sail with mysql and redis.
-
First, install the dependencies
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php83-composer:latest \ composer install --ignore-platform-reqs
-
Create and copy .env.example file to a .env file
-
Boot up the project
./vendor/bin/sail up
-
Install npm dependencies
./vendor/bin/sail npm install
-
Migrate and populate the database
./vendor/bin/sail artisan migrate --seed
-
Finally, generate the app key in your env file
./vendor/bin/sail artisan key:generate
And you're good to go!
To execute any command, prefix it with:
./vendor/bin/sail
See list of artisan commands:
./vendor/bin/sail list