This project is a web application built with Laravel, ReactJS with Vite, and Stisla Admin Template. The web application is designed to provide a user-friendly interface for managing data with the CRUD, searching, pagination, showing, single page application, and validation features.
- backend: Contains the Laravel project
- frontend: Contains the ReactJS project
- Laravel for backend RESTful API
- ReactJS with Vite for frontend development
- Stisla Admin Template for responsive and user-friendly interface
- CRUD operations for managing data
- Searching and pagination functionality
- Single page application with React Router
- Form validation with ReactJS validation rules
- [NEW!] Authentication with JWT Token
- [NEW!] Validation and sweetalert authentication
- [NEW!] Multiple authentication role REST API with laratrust!
- [NEW!] Page: 404, 403.
- PHP >= 8.1 or new
- Composer
- Node.js last version
- NPM last version
- MySQL or MariaDB last version
- Clone this repository to your local machine:
git clone https://github.com/fhmiibrhimdev/laravel-react-vite-stisla.git
- Install the dependencies for the Laravel project:
cd backend
composer install
- Create a .env file for your Laravel project and configure your database settings:
cp .env.example .env
- Generate a new APP_KEY for your Laravel project:
php artisan key:generate
- Run database migrations:
php artisan migrate:fresh --seed
- Run JWT Secret and Storage Link:
php artisan jwt:secret
php artisan storage:link
- Install the dependencies for the ReactJS project:
cd ../frontend
npm install
- Start the development server for the ReactJS project:
npm run dev
- Start the development server for the Laravel project:
cd ../backend
php artisan serve
- Visit Localhost in your web browser to access the web application.
This project is licensed under the MIT License. See the LICENSE file for more details.