laravel-react-spa
laravel-react-spa copied to clipboard
A Laravel-React SPA starter project template.
Laravel-React SPA
Starter Boilerplate SPA made with Laravel and React.
Features
- Laravel 7, React, React Router
- React Hook, React Context for state management
- Authentication with JWT
- Login, register, reset password
- Flexible Page Layout
- Flexible, Protected Routing
- Tailwind CSS
- ESlint
Installation
- Clone the repo
- Installing all Composer & NPM dependencies.
composer install && npm install
- Copy .env.example to .env
- Generate app key
php artisan key:generate
- Run database migration
php artisan migrate:fresh
- Generate JWT secret
php artisan jwt:secret
- Compiling Assets
npm run dev
- Boot up a server
php artisan serve