Everything you need to start building amazing apps!
- Built on top of Laravel 5.6, Vue.js 2.5, and Vuetify 1.0
- Admin panel: CRUD for pages with JWT Authentication (using RS256 algorithm), drag & drop reordering and option to show desired pages in navbar
- JWT is also verified by frontend, as well as IP address from token's payload
- App can be easily translated to desired language using vuex-i18n and translation strings. Just rename resources/assets/js/translationsPL.js according to your language and translate it. You'll also need to change line 33 and 34 in app.js.
- Image dropzone
- WYSIWYG (Quill) with image upload
- Image gallery (lightbox)
-
Clone repository:
git clone https://github.com/bogumilkorek/laravel-vue-spa-boilerplate && cd laravel-vue-spa-boilerplate
-
Rename .env.example to .env and insert your database connection data as well as random key (JWT_PASSPHRASE)
-
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
-
Install Composer dependencies:
composer install
-
Generate app key:
php artisan key:generate
-
Generate JWT Secret:
php artisan jwt:secret
-
Run DB migrations:
php artisan migrate
-
If you want to fill DB with example values run seeders:
php artisan db:seed
-
Install Node dependencies:
yarn install
-
Run API tests:
vendor/bin/phpunit
-
Test Vue components (still in development):
yarn test
-
Compile assets:
yarn dev
-
Navigate to localhost/laravel-vue-spa-boilerplate and check if everything works fine
-
Admin panel: /admin, login: admin, password: secret
- Code refactoring
- Proper Vue components tesing
Both personal and commercial use allowed without any restrictions.
Feel free to ask me any questions.
Code reviews are always much appreciated :)