Skip to content

Palak3125/Payroll-processing-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Payroll Processing System

Overview

Payroll Processing System is a backend application that manages employee details, attendance records, and calculates salaries using rule-based business logic. The system is designed to handle real-world edge cases such as missing attendance and conditional salary deductions.

Tech Stack

  • Node.js
  • Express.js
  • MySQL
  • Postman

Features

  • Add and retrieve employee details
  • Record employee attendance
  • Calculate salary based on configurable rules
  • Rule-based deduction logic for absences
  • Handles edge cases like employees with no attendance records
  • Secure database configuration using environment variables

API Endpoints

Add Employee

POST /employee

Get Employee Details

GET /employee/:id

Record Attendance

POST /attendance

Calculate Salary

GET /salary/:emp_id

Database Design

  • employees: Stores employee details and base salary
  • attendance: Stores daily attendance records
  • Salary calculation uses SQL aggregation and joins to derive absence counts

Key Concepts Implemented

  • RESTful API design
  • SQL JOINs and aggregation functions
  • Rule-based backend logic
  • Environment variable management for security
  • Error handling and edge-case handling

How to Run Locally

  1. Clone the repository
  2. Install dependencies using npm install
  3. Create a .env file with database credentials
  4. Start the server using node app.js
  5. Test APIs using Postman

Notes

This project is developed as a backend-focused system to demonstrate problem-solving, data modeling, and API design skills relevant to SDE roles.

About

A backend project that manages employee details, attendance, and salary calculation using rule-based business logic built with Node.js and MySQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors