Local development
Install compatible PHP, Composer, MySQL and Node.js. Use a separate local database with demonstration data only.
Follow preparation, using composer install with development dependencies instead of --no-dev. Set APP_ENV=local, configure a new local database, and follow configuration.
# Terminal 1, from backend
php artisan serve --host=127.0.0.1 --port=8000
# Terminal 2, from backend
npm run dev
Set APP_URL=http://localhost:8000. Run additional services when testing asynchronous or real-time features. Use local mail capture instead of customer email accounts.
Use a real web server and compiled assets for customer hosting. Keep local configuration and uploads out of source packages.