vue-laravel-spa
vue-laravel-spa copied to clipboard
A simple and clean starter-kit to start a new SPA project. Its like Jetstream without Inertia but with Vue-Router and Pinia as store.
Laravel Fortify Vue SPA
A simple and clean boilerplate to start a new SPA project with authentication and more features from fortify. Its like the little sister of Jetstream, but as SPA. This boilerplate uses the following tools:
Features
The following Sanctum and Fortify features are implemented in this Vue SPA:
- ✅ Login
- ✅ Passwort Reset
- ✅ Registration
- ✅ Profile Management
- ✅ Password Confirmation
- ✅ Two Factor Authentication with Confirmation
- ✅ E-Mail Verification
Roadmap
Missing something? Feel free to tell me what would be a nice addition to this boilerplate.
- 🔘 Darkmode
- 🔘 Better error handling on UI
- 🔘 Password confirmation fixes
- 🔘 Example page with form and api controller
- 🔘 PWA
- 🔘 More Tests
Getting started
Take this steps:
- git clone
- run
composer install
- run
yarn
- copy .env.example to .env
- modify .env file
- migrate database
php artisan migrate
Make sure to set those two variables to your current domain or localhost:
APP_URL=http://laravel-vue-spa-boilerplate.test
SESSION_DOMAIN=laravel-vue-spa-boilerplate.test
Consider to support my work and say thank you with a coffee. I would very much appreciate that.
Screenshots
A Picture Is Worth More Than A Thousand Words.
Testing
PHPunit is ready setup to test the API side of this boilerplate. Tested are all Sanctum and Fortify features cause there are heavily based on there original tests. Thats a good starting point to add tests for your next project. To run the tests you can call phpunit like this:
php artisan test
Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail via [email protected]. All security vulnerabilities will be promptly addressed.
License
The Laravel framework is open-sourced software licensed under the MIT license.
The Vue framework is open-sourced software licensed under the MIT license.
This repository is open-sourced software licensed under the MIT license.