Monorepo fullstack apps build with Laravel API & Nuxt 3 FE
- docker + docker compose
git clone https://github.com/WailanTirajoh/lara-nuxt.git
cd lara-nuxt
# Build docker
docker compose up -d
# Get into php container shell
docker compose exec php sh
# Setup
cp .env.example .env
composer install
php artisan key:generate
# DB Seed
php artisan migrate --seed
# Permission
chown www-data:www-data -R storage
# Storage Link
php artisan storage:link
# Quit from php sh
exit
By following this CLI steps, we can open http://api.localhost on browser to see API up and running.
cd cms
cp .env.example .env
bun install
bun run dev -o
And then open localhost:3000 for development, for production we have image running at http://cms.localhost
- open CMS UI at localhost:3000 or http://cms.localhost
- login credentials (Look at api AppSeeder.php)
email: [email protected]
password: wailan
docker compose exec php php artisan test --coverage --testsuite=Feature
# OR with php unit
docker compose exec php vendor/bin/phpunit --coverage-html reports/ --testsuite Feature
docker compose exec php vendor/bin/pint
open http://phpmyadmin.localhost
# Login Credentials
username: homestead
password: secret