Install vite
globally (if it's not already installed) :
npm i -g vite
cp .env.example .env
If you are on Windows, copy .env.example
to .env
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
./vendor/bin/sail up -d
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan storage:link
npm install
npm run build
./vendor/bin/sail artisan migrate --seed
If you have an error SQLSTATE[HY000] [2002] Connection refused, re run it (it is because the mysql container is not already up)
- You can go now to http://localhost to see the application running.
- Administration URL is by default : http://localhost/administration
- You have a mail server running also on http://localhost:8025/.
./vendor/bin/sail pint
./vendor/bin/sail test