- Clone the repository with git clone
Back-end
- Go to the sub-folder
cd laravel-api
- Copy .env.example file to .env and edit database credentials there
- Add correct value of your domain for front URL in this variable:
FRONTPAGE_VERIFY_URL=[your_domain]/verify/
- Run composer install
- Run php artisan key:generate
- Run php artisan migrate --seed (it has some seeded data for your testing)
- Run php artisan passport:install
Front-end
- Go to the sub-folder
cd front
- Copy .env.local.example to .env.local and edit URL of your API
- Run npm install
- Run npm run serve
- That's it: launch the URL that appears in the terminal - could be
http://localhost:8080
Basically, feel free to use and re-use any way you want.
- Check out our adminpanel generator QuickAdminPanel
- FREE E-book: 100 Laravel Quick Tips (and counting)
- Subscribe to our YouTube channel Laravel Business
- Enroll in our Laravel Online Courses