A Laravel-Vue SPA starter project template.
- Laravel 5.6
- Vue + VueRouter + Vuex + VueI18n + ESlint
- Pages with dynamic import and custom layouts
- Login, register and password reset
- Authentication with JWT
- Socialite integration
- Bootstrap 4 + Font Awesome 5
Configure MySQL following tutorial.
Settings
# Create .env file
cp .env.example .env
Change in the .env
file fields:
DB_DATABASE=dbname
DB_USERNAME=dbuser
DB_PASSWORD=userpassword
PHP part
# install php dependencies
composer install
# Additional commands
php artisan key:generate
php artisan jwt:secret
#migrate database
php artisan migrate
php artisan db:seed
JavaScript part
# install javascript dependencies
npm install
OR
# In case npm is not working in Windows
yarn install
# build application
npm run dev
# start dev server on 8888 port
php artisan serve --port="8888"
# build and watch
npm run watch
# serve with hot reloading
npm run hot
npm run production
Please see CHANGELOG for more information what has changed recently.