This command will generate 50 recipes. You can run this after kickstarting the app using the instructions below.
sail artisan db:seed --class=RecipeSeeder
See docs
directory for mockup and Postman Collection
- docker
- docker-compose
[email protected]:kchapple/recipe-search-3000.git
recipe-search-3000
docker run --rm \
--pull=always \
-v "$(pwd)":/opt \
-w /opt \
laravelsail/php82-composer:latest \
bash -c "composer install"
cp .env.example .env
./vendor/bin/sail up -d
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan migrate
./vendor/bin/sail npm install --prefix frontend
./vendor/bin/sail npm run dev --prefix frontend
visit the frontend http://localhost:3000
visit the backend http://localhost:8888
docker exec -it laravel-mysql-1 bash -c "mysql -uroot -ppassword"
Or use any database GUI and connect to 127.0.0.1 port 3333
./vendor/bin/sail down
to bring down the stack
Sometimes it's necessary to restart the nuxt app when adding new routes. Simply ctrl+c
on the npm command execute
./vendor/bin/sail npm run dev --prefix frontend
again