An open API service indexing awesome lists of open source software.

https://github.com/nwalazaro/payroll-module

Backend payroll calculation module built in .NET Core. Calculates net salary from base salary, bonus, and tax rate. Simulated project based on real-world enterprise development.
https://github.com/nwalazaro/payroll-module

api api-restful backend clean-architecture csharp dotnet financial-systems payroll

Last synced: about 1 month ago
JSON representation

Backend payroll calculation module built in .NET Core. Calculates net salary from base salary, bonus, and tax rate. Simulated project based on real-world enterprise development.

Awesome Lists containing this project

README

          

# Payroll Module (Simulated Project)

This is a backend module for calculating employee payroll in a simulated HR or financial system.
It was built using ASP.NET Core and follows clean code and SOLID principles.

## πŸ“Œ Features

- Calculates net payroll based on base salary, bonus, and tax rate.
- Exposes a REST API endpoint for payroll calculation.
- Organized into Models, Controllers, and Services using dependency injection.
- Easy to extend and integrate into larger systems.

## πŸ› οΈ Technologies Used

- .NET Core
- C#
- ASP.NET Web API
- Dependency Injection
- Entity Framework Core (placeholder for DB)
- Swagger (suggested for API testing)

## πŸ“ Project Structure

```
PayrollModule/
β”œβ”€β”€ Controllers/
β”‚ └── PayrollController.cs
β”œβ”€β”€ Models/
β”‚ └── Employee.cs
β”œβ”€β”€ Services/
β”‚ └── PayrollService.cs
```

## πŸš€ How to Run (Conceptual Example)

1. Clone the repository
2. Add to a new ASP.NET Core Web API project
3. Register `IPayrollService` and `PayrollService` in `Startup.cs`
4. Use Swagger or Postman to test the endpoint:
```
POST /api/payroll/calculate
{
"name": "Alice",
"baseSalary": 3000,
"bonus": 500,
"taxRate": 0.15
}
```

## πŸ“„ Note

This is a simulated project created for portfolio demonstration purposes. It does not contain business-sensitive or proprietary code.

---

Created by Anderson Enrique LΓ‘zaro Moreno
Barcelona, Spain