This is a project that combines React with Laravel.
To install this project, follow these steps:
- Clone the repository:
- Go to the working directory:
- cd <repo_name>
- Install the dependencies:
- composer install
- npm install -f
- If the
@vitejs/plugin-react
dependency is separated from the "dependencies" section inpackage.json
, you must also run this command:
- npm install @vitejs/plugin-react -f
- To run the project, you will need two terminal windows. One for Laravel server and one for React:
php artisan serve
- for Laravelnpm run dev
- for React