Laravel-React SPA
Starter Boilerplate SPA made with Laravel and React.
Features
- Laravel 6, React, Redux, React Router
- Authentication with JWT
- Login, register, reset password
- Socialite integration (Google Account Sign in)
- 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
- Create an Application in the Google API Console, Add google client id to the env file.
GOOGLE_CLIENT_ID=
- 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