A simple App made with Laravel 5.6 and Vue 2.5 SPA. An admin can create, edit and delete Users.
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).
-
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
All test run by PHPUnit. You can execute them by typing:
vendor/bin/phpunit
To fix php code
vendor/bin/php-cs-fixer fix
To fix js and vue code
npm run lint -- --fix
The Workshop is open-sourced software licensed under the MIT license.