Skip to content

The Employee Management System (EMS) is a scalable API for managing employees and departments. It allows adding, updating, viewing, and deleting employee data while linking them to departments. With secure access and custom queries, EMS is ideal for small to medium businesses to streamline workforce management efficiently.

Notifications You must be signed in to change notification settings

amrmuhamedd/employee-management-system-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management System - Java, Spring Boot, PostgreSQL

This is a fully functional Employee Management System built using Java, Spring Boot, and PostgreSQL. The system allows for basic CRUD operations (Create, Read, Update, Delete) on employee records. It is designed to manage employee data, including their names, emails, positions, and salaries. The application is built with RESTful APIs to perform the operations, and it uses PostgreSQL as the database to persist employee information.

Key Features:

  • Create Employee: Add new employee records with details such as name, email, position, and salary.
  • Read Employee: Retrieve employee details by ID or fetch all employee records.
  • Update Employee: Modify an existing employee's details by providing the employee ID.
  • Delete Employee: Remove an employee record based on the provided ID.

Technologies Used:

  • Java: The primary programming language used for backend development.
  • Spring Boot: A framework that simplifies the development of Java-based applications, enabling fast and efficient development of RESTful APIs.
  • PostgreSQL: A relational database management system used to store and retrieve employee data.
  • JPA/Hibernate: Java Persistence API (JPA) with Hibernate for object-relational mapping (ORM) to interact with the PostgreSQL database.
  • Spring Data JPA: For easy integration with PostgreSQL and managing database operations.

screencapture-documenter-getpostman-view-15215271-2sAYJ1mNGT-2024-12-19-00_44_47

Postman Collection:

You can explore and test the API endpoints using the Postman Collection.

Installation & Setup:

  1. Clone the repository:
git clone https://github.com/your-username/employee-management-system.git
  1. Navigate into the project directory:
cd employee-management-system
  1. Set up the PostgreSQL database and create a database named employee_management.

  2. Modify the application.properties or application.yml file to set up the database connection:

spring.datasource.url=jdbc:postgresql://localhost:5432/employee_management
spring.datasource.username=your-username
spring.datasource.password=your-password
spring.jpa.hibernate.ddl-auto=update
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect

Run the Spring Boot application:

./mvnw spring-boot:run

The application will run on http://localhost:8080 by default.

About

The Employee Management System (EMS) is a scalable API for managing employees and departments. It allows adding, updating, viewing, and deleting employee data while linking them to departments. With secure access and custom queries, EMS is ideal for small to medium businesses to streamline workforce management efficiently.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages