Skip to content

RachamallaYeswanthReddy/Employee-Management-System-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Employee Management System

Overview

This project is a simple Employee Management System developed using Spring Boot for learning purposes. It provides basic CRUD (Create, Read, Update, Delete) operations for managing employee records.

Features Implemented

  1. Create an Employee:

    • Endpoint: POST /employees
    • Description: Add a new employee to the Backend.
    • Request Body: JSON object representing the employee details.
  2. Update an Employee:

    • Endpoint: PUT /employees/{employeeId}
    • Description: Update the details of an existing employee.
    • Request Body: JSON object with updated employee details.
  3. List of Employees:

    • Endpoint: GET /employees
    • Description: Retrieve a list of all employees in the system.
  4. Delete Employee:

    • Endpoint: DELETE /employees/{employeeId}
    • Description: Delete an employee from the system by providing the employee ID.
  5. View Employee:

    • Endpoint: GET /employees/{employeeId}
    • Description: Retrieve details of a specific employee by providing the employee ID.

Technologies Used

  • Spring Boot: Framework for building Java-based enterprise applications.
  • Spring Data JPA: Simplifies data access using JPA (Java Persistence API).
  • RESTful API: Follows REST principles for communication between the client and server.
  • Maven: Project management and build tool.
  • MYSQL Database: In-memory database for simplicity in the learning environment.

How to Run

  1. Ensure you have Java and Maven installed on your machine.
  2. Clone the repository: git clone <https://github.com/RachamallaYeswanthReddy/Employee-Management-System>
  3. Create the Springboot App from the SpringInitializer
  4. Select Project as Maven , Select the Version of Springboot as Default and In group name as com.Employee-Management-System
  5. Add the Following in the Dependencies
    1. Spring Web
    2. Spring Web Services
    3. Spring Data JPA
    4. MYSQL Driver
  6. Download the Project And Extract the zip file in respective folder
  7. Replace the src with the cloned src folder
  8. Build the project: mvn clean install
  9. Run the project

The application will be accessible at http://localhost:8080.

API Documentation

API documentation is available using Swagger. After running the application, access Swagger UI at: http://localhost:8080/swagger-ui.html

Sample Requests

Create Employee

Use the PostMan to Add the Employee Create Blank Collection and Add the Request To Create the Employee Use Post call image

   {
    "firstName":"Latha ",
    "lastName":"Rachamalla",    
    "emailId":"latharachamalla@gmail.com"
}

image

Update Employee

    http://localhost:8080/employee/employees/3
  {
    "firstName":"Jai Kumar ",
    "lastName":"Rachamalla",
    "emailId":"jaikumarreddi@gmail.com"
}

image

List of Employees

    http://localhost:8080/employees

image

Delete Employee

   DELETE http://localhost:8080/employees/3

image

View Employee

curl http://localhost:8080/employees/2

image

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests. Your feedback and suggestions are highly appreciated.

License

This project is licensed under the MIT License - see the [LICENSE] file for details.


About

Employee Management System (Backend)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages