bogumilkorek / laravel-vue-spa-boilerplate

Laravel 5.6 + Vue.js Single Page Application boilerplate
12 stars 4 forks source link

Laravel & Vue.js Single Page Application Boilerplate

Everything you need to start building amazing apps!

1. Features

2. Installation

  1. Clone repository:
    git clone https://github.com/bogumilkorek/laravel-vue-spa-boilerplate && cd laravel-vue-spa-boilerplate

  2. Rename .env.example to .env and insert your database connection data as well as random key (JWT_PASSPHRASE)

  3. Generate Private & Public Key using previously typed JWT_PASSPHRASE:
    openssl genrsa -passout pass:YOUR_JWT_PASSPHRASE -out storage/jwt/private.pem -aes256 4096
    openssl rsa -passin pass:YOUR_JWT_PASSPHRASE -pubout -in storage/jwt/private.pem -out public/jwt/public.pem

  4. Install Composer dependencies:
    composer install

  5. Generate app key:
    php artisan key:generate

  6. Generate JWT Secret:
    php artisan jwt:secret

  7. Run DB migrations:
    php artisan migrate

  8. If you want to fill DB with example values run seeders:
    php artisan db:seed

  9. Install Node dependencies:
    yarn install

  10. Run API tests:
    vendor/bin/phpunit

  11. Test Vue components (still in development):
    yarn test

  12. Compile assets:
    yarn dev

  13. Navigate to localhost/laravel-vue-spa-boilerplate and check if everything works fine

  14. Admin panel: /admin, login: admin, password: secret

3. Todo

4. License

Both personal and commercial use allowed without any restrictions.
Feel free to ask me any questions.
Code reviews are always much appreciated :)