GonzaloGPF / workshop

Laravel + vue SPA boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workshop

A simple App made with Laravel 5.6 and Vue 2.5 SPA. An admin can create, edit and delete Users.

Goodness

This project has the following characteristics

  • Complete Vue SPA with JWT and i18n. It has setup localized currencies and dates too.
  • Frontend made with VueMaterial. Using Vuelidate for validations.
  • Vue SPA using VueRouter 3, Vuex 3 and Axios.
  • A small Database structure and Seeders are ready with Users and basic Roles.
  • Has a complete User's admin panel. An Administrator has access to a CRUD interface over Users.
  • Implementation of i18n with English and Spanish languages.
  • Linters are setup for Style (stylelint), Javascript (eslint) and php (codesniffer).

Setup

  • First, copy .env.example to .env file. Modify it to your needs.

  • Then, install dependencies:

composer install

npm install

  • Setup the app key with:

php artisan key:generate

php artisan jwt:secret

  • You can create a database and populate it with:

php artisan migrate:fresh --seed

  • Generate i18n messages:

php artisan vue-i18n:generate

  • Compile front end:

npm un dev

Tests

All test run by PHPUnit. You can execute them by typing:

vendor/bin/phpunit

Linters

To fix php code

vendor/bin/php-cs-fixer fix

To fix js and vue code

npm run lint -- --fix

License

The Workshop is open-sourced software licensed under the MIT license.

About

Laravel + vue SPA boilerplate


Languages

Language:PHP 68.5%Language:Vue 31.0%Language:HTML 0.5%