A basic template for a single-page application using Laravel and Vue.js
- Run
git clone https://github.com/jsiebach/laravel-vue
- Navigate into the project and run
composer install
- Run
npm install
- Rename the
.env.example
file to.env
- To generate an encryption key for your Laravel project, run
php artisan key:generate
- To generate an encryption key for JWT web token authorization, run
php artisan jwt:generate
- Set your database credentials in
.env
- There are many other useful app settings located in the
.env
file as well as throughout the/config
directory that you should review.
This project uses gulp to pre-compile css and js. To compile, run gulp
.
Use gulp --production
to minify the output.
Use gulp watch
to start hot-reloading. This will launch a server on localhost:3000
unless you change the settings in gulpfile.js
.
This project comes pre-packaged with a few useful libraries:
Bootstrap
Moment.js
Underscore.js
Bootstrap Sass
FontAwesome
Guzzle
Vue-Strap
js-loading, a custom loading spinner component
js-button, a custom button component