This repository built using Laravel as the backend and React as the frontend.
-
Clone this repository to your local system:
git clone https://github.com/ChristopherIndraBhagaskara/herca-api.git
-
Navigate to the project directory:
cd herca-api
-
Install dependencies using Composer for the backend and npm (or yarn) for the frontend:
composer install npm install
-
Copy the
.env.example
file to.env
and configure the database and other settings:cp .env.example .env
-
Copy the
react/.env.example
file toreact/.env
and configure VITE_API_BASE_URL settings:VITE_API_BASE_URL=http://localhost:8000
-
Generate the application key and run migrations:
php artisan key:generate php artisan migrate
-
Run the Laravel and React servers:
php artisan serve npm run dev
The application can be accessed at http://localhost:3000.
/
: Directory containing Laravel backend code./react
: Directory containing React frontend code.
- Backend: Laravel version 10.10
- Frontend: React version 18.2.0
- Database: MySQL