Git Product home page Git Product logo

erp-api's Introduction

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;

erp-api's People

Contributors

adrianokerber avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.