This is a simple site that I following this tutorial created.
You can find the instructor's version here.
I use Sail to run this repository in WSL.
The following will share my method.
- install docker desktop in your Windows(yes, Windows not WSL).
- use
git clone
or any method to clone this project to your local. - run
cp .env.example .env
- run
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
- run
./vendor/bin/sail up -d
- run
./vendor/bin/sail artisan key:generate
- run
./vendor/bin/sail artisan migrate
or./vendor/bin/sail artisan migrate --seed
- open browser and go to http://localhost