laravel-react-boilerplate
laravel-react-boilerplate copied to clipboard
Laravel React Boilerplate with Ant Design, Route-Level Code Splitting, Redux, Sanctum Auth
Laravel React Boilerplate
Laravel React Boilerplate helps to fasten your development, Instead of spending more time on configuring React and SPA Authentication.
Pre-Configured with
- Laravel 9
- Laravel Sanctum for SPA Auth
- React 18
- Redux
- React Router
- Route-Level Code-Splitting
- Axios
- Ant Design
- Redux Saga
- Sass
- ESLint
- Preconfigured redux store, actions and saga.
Pre-Configured Modules
- User Login
- User SignUp
- Auth Routes
Quick Start
Laravel Development Environment setup
You can choose either one for your development
Required setup before clone
- Composer 2.
- Node stable version.
Usage
Option 1
- Install using composer
composer create-project nilanth/laravel-react-boilerplate
-
cd laravel-react-boilerplate
- Run
yarn install
- Create a Database
- Update the Database credential to .env file
- Run
php artisan migrate
-> To create needed tables. - Run
php artisan db:seed
-> To seed some fake users. - Run
yarn run dev
- Update API HOST_URL in
resources/js/config/constant.js
file
Option 2
- Clone this Repo
-
cd laravel-react-boilerplate
- Create a .env by copying .env.example and Update the required fields.
- Run
composer install
- Run
php artisan key:gen
- Run
yarn install
- Create a Database
- Update the Database credential to .env file
- Run
php artisan migrate
-> To create needed tables. - Run
php artisan db:seed
-> To seed some fake users. - Run
yarn run dev
- Update API HOST_URL in
resources/js/config/constant.js
file
Coming Up
- Tests
- Custom Error response for API request
- Reset Password
- Email Verification
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Nilanth
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Support
This project needs a ⭐️ from you. Don't forget to leave a star ⭐️
If you found this boilerplate helpful, consider supporting me with a coffee.