A full-stack Employee Management System built with React.js (frontend) and Spring Boot (backend), using MySQL as the database. This project allows managing employees with full CRUD operations and demonstrates integration between a modern frontend and a robust backend.
-
Backend (Spring Boot)
- RESTful API for employees
- CRUD operations: Create, Read, Update, Delete
- MySQL database integration
- JPA/Hibernate for ORM
-
Frontend (React.js)
- Employee List page displaying all employees
- Add Employee form with validation
- Update Employee functionality with validation
- Delete Employee with confirmation
- Connected to backend API using Axios
employee-management-system/
├── backend/
│ ├── src/
│ ├── pom.xml
│ └── application.properties
├── frontend/
│ ├── src/
│ ├── package.json
│ └── public/
├── README.md
└── LICENSE
- Java 17+
- Maven or Gradle
- Node.js 18+ and npm/yarn
- MySQL 5.7+ or 8+
- Navigate to the backend folder:
cd backend- Configure your MySQL database in application.properties:
spring.datasource.url=jdbc:mysql://localhost:3306/employee_db
spring.datasource.username=root
spring.datasource.password=yourpassword
spring.jpa.hibernate.ddl-auto=update
- Run the Spring Boot application:
mvn spring-boot:run
# or
./gradlew bootRun
Backend will run on http://localhost:8080.
- Navigate to the frontend folder:
cd frontend
- Install dependencies:
npm install
# or
yarn
- Run the React app:
npm start
# or
yarn start
Frontend will run on http://localhost:3000.
- Visit
http://localhost:3000in your browser. - View the list of employees.
- Use the Add, Update, and Delete buttons to manage employees.
- All changes are synced with the backend API.
- Add authentication and role-based access (Admin/User)
- Implement search and pagination for employees
- Add unit and integration tests for backend and frontend
- Enhance UI with better styling and responsiveness
- Frontend: React.js, Axios, HTML, CSS
- Backend: Spring Boot, Spring Data JPA, MySQL, Hibernate
- Build Tools: Maven/Gradle, npm/yarn
This project is licensed under the MIT License - see the LICENSE file for details.


