SPA using Laravel + VueJS starter project template.
Requirement | Version |
---|---|
PHP | 7.x |
Laravel | 5.6.x |
- Laravel 5.6
- Vue + VueRouter + Vuex
- Sass
- Authentication with JWT
- Bootstrap-Vue 4
- Material design icons
- Bootstrap theme integrate - Purple Admin Free
- VueJS notifications
- Login page
- User - create/edit/delete/list
- PHP Unit test
- Browser Tests (Laravel Dusk)
Clone repo to your local machine:
git clone git@github.com:svet-penev/sturdy-adventure.git
Run composer
composer install
Configure your .env file
vim .env
Run
php artisan key:generate
Connect and create a new database. Seed your new databse
by migrating sample data.
php artisan migrate --seed
Install needed dependencies
yarn install
Build
yarn run dev
Generate jwt ket
php artisan jwt:generate
Run application
php artisan serve
Login Credentials
email: admin@admin.com
pass: 123456
Unit test
vendor/bin/phpunit
Dusk test Create new database that will be used only for testing purpose.
#create local env for dusk
vim .env.dusk.local
#run dusk test
php artisan dusk
Development
# build and watch
yarn run watch
# serve with hot reloading
yarn run hot
Production
yarn run production