Docker
Docker Compose
- Clone the repo and run
cp .env.example .env
- Run this command to download composer dependencies:
docker run --rm \ -v $(pwd):/opt \ -w /opt \ laravelsail/php80-composer:latest \ composer install
- Make sure no process is running on 8000,8001,8002 port and Run the command to run the containers
./vendor/bin/sail up
While running the application make sure you have alias set up foralias ./vendor/bin/sail= sail
- Run command to set application key
sail artisan key:generate
- Run command to migrate the database
sail artisan migrate --seed
- Run the test using this command
sail artisan test
- Run this command to install dependencies
sail npm install
- Runt the watchers
sail npm run watch