Skip to content

A simplified ERP system made using ASP.NET framework. Made to solve day-by-day business management.

License

Notifications You must be signed in to change notification settings

adrianokerber/erp-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERP.API - A simplified Enterprise Resource Planning solution

This project is a study that aims to put together back-end technologies in an applied context that is the Enterprise Resource Planning (A.K.A.: ERP) solution. We are going to apply the concepts of Clean Architecture and Clean Code as much as possible. The final expected result is a RESTful API on .NET using ASP.NET framework, made to solve day-by-day business management.

Warning: Currently this is just a study not a software for production purposes. Feel free to use the system at your own risk. We do not take responsability for any damage caused by this software.

The system has the goal to solve some business issues as:

  • Human resources management
  • Payroll management
  • Audit of company actions on the ERP

Technologies applied to the project

  • .NET
  • ASP.NET framework
  • Dapper
  • SQL Server
  • Docker

1. Setup and running the API

We recommend the usage of Docker for running our project. For debbuging prefer installing the .NET directly on your machine and using Visual Studio or VSCode IDEs.

Note: in order to run the project on Docker you must install Docker first! As for running .NET you must install it on your machine too.

Setup

First you will need to install one or all options bellow

Use the embedded SQL Server of the Visual Studio for local debug or the server on the Docker container (Through docker-compose) and run the following script ./utl/DatabaseInitializationAndUsefulQueries.sql. This script will setup the database and the initial data.

NOTE: once we enable migrations this step will be replaced.

Run API locally

Using the Visual Studio IDE or run via CLI using

dotnet run --project src/ErpApi.WebAPI/ErpApi.WebAPI.csproj

Run API as Docker container

Container docker

# Build
docker build -t web-api .
# Run
docker run -d -p 8080:80 web-api

Build your environment via docker-compose

Initialize all containers

docker-compose up -d

Initialize and build all containers (Important to rebuild if needed!)

docker-compose up -d --build

Shutdown all containers

docker-compose down

Tip: use docker-compose or docker compose without dash.

Access the aplication with the browser using localhost:8080.

2. Roadmap

The planned features for this system are:

  • Hire collaborators
    • Set collaborator salary
  • Increase collaborators' salary
  • Fire collaborators
  • Audit of system changes through database (SQL)
  • View cash flow throught specific and global payroll

Tasks accomplished

List of tasks accomplished that enable us to follow the readmap:

  • Create base project
  • Create WebAPI with Collaborator's initial logic
  • Create Test project
    • Create base project
    • Create test framework for SQL database tests
    • Improve test framework to allow multiple tests to work with same database schema and or data
    • Cover initial functionalities with tests

Technical Goals

#back-end; #dotnet6; #dapper; #docker; #docker-compose; #sqlserver;

About

A simplified ERP system made using ASP.NET framework. Made to solve day-by-day business management.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published