The Employee Management System is a web application built using Angular for the frontend (client) and Spring Boot for the backend (server). It allows users to manage employee details, including adding, updating, viewing, and deleting employee records.
Employee-Management-System/
│-- client/ # Angular Frontend
│-- server/ # Spring Boot Backend
- Angular
- TypeScript
- HTML/CSS
- Bootstrap
- Angular Services & Components
- Spring Boot
- Spring MVC
- Spring Data JPA
- Hibernate
- MySQL (or H2 for in-memory database)
- RESTful APIs
- Node.js & npm (for Angular client)
- Java (JDK 17+ recommended)
- MySQL Database (if using MySQL)
- Maven (for Spring Boot)
- Navigate to the
serverdirectory:cd server - Configure database settings in
application.properties(for MySQL):spring.datasource.url=jdbc:mysql://localhost:3306/employee_db spring.datasource.username=root spring.datasource.password=yourpassword spring.jpa.hibernate.ddl-auto=update
- Build and run the Spring Boot application:
mvn clean install mvn spring-boot:run
- Navigate to the
clientdirectory:cd client - Install dependencies:
npm install
- Start the Angular development server:
ng serve
- Open a browser and visit:
http://localhost:4200
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/employees |
Get all employees |
| GET | /api/employees/{id} |
Get employee by ID |
| POST | /api/employees |
Add a new employee |
| PUT | /api/employees/{id} |
Update an existing employee |
| DELETE | /api/employees/{id} |
Delete an employee |
- CRUD operations for employees
- Responsive UI with Angular
- RESTful APIs using Spring Boot
- Database integration with MySQL
- Fork the repository.
- Create a new branch (
feature/your-feature). - Commit your changes.
- Push to your branch.
- Open a Pull Request.