Everything you need to start building amazing apps!
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
Both personal and commercial use allowed without any restrictions.
Feel free to ask me any questions.
Code reviews are always much appreciated :)