This is a simple Employee Management System built using Spring Boot, Gradle, and H2 database.
- Add new employees to the system.
- Retrieve a list of all employees.
-
Clone Repository:
git clone <repository-url>
-
Build Project:
./gradlew build
-
Run Application:
java -jar build/libs/employee-management.jar
-
Access Application:
- Open your web browser and go to
http://localhost:3000
- Open your web browser and go to
- GET
/employee/hello
: Test endpoint to check if the server is running. - POST
/employee/save
: Add a new employee to the system.- Request Body: JSON object with
id
andname
fields.
- Request Body: JSON object with
- GET
/employee/all
: Retrieve a list of all employees.
- Java
- Spring Boot
- H2 Database
- HTML/CSS/JavaScript (for frontend)
- The server runs on port
3000
. - H2 in-memory database is used with the following credentials:
- Username:
admin
- Password:
admin
- Username:
- The frontend is a simple HTML page with JavaScript for interaction.