This is a back-end part of the application, that displays sales statistics in the form of interactive graph. The current service provides and API for managing sales (simple CRUD operations) and for calculating sales statistics (number and amount of sales).
Configure application by editing the following appsettings.json
file in the ./src/Web
directory:
{
"ConnectionStrings": {
"DefaultConnection": "Server=127.0.0.1,1433;Database=SalesDb;User Id=sa;Password=reallyStrongPwd123",
"DockerConnection": "Server=sql_server;Database=SalesDb;User Id=sa;Password=reallyStrongPwd123;"
},
"InitialDbSeedEnable": true,
"AllowedHosts": "*"
}
Database initial seed is ENABLED by default. To disable database seeding with initial sales data, set InitialDbSeedEnable
to false
.
To run the application, type the following commands from the app root directory:
> docker-compose build
> docker-compose up
For macOs or Linux systems, use sudo
for commands above.
To know more about docker-compose, please visit docker official site.
For more information on the service API, use the Swagger service by navigating to the following URL:
http://localhost:3000/swagger
- ASP.NET Core 3.1;
- Clean architecture;
- REST API with Swagger;
- CRUD;
- Docker;
- Entity Framework Core for SQL Server;
- CQRS with Fluent Validation,
- Automapper;
- Health check;
- Logging with Serilog;
- Unit tests with xUnit, Moq and Shouldly.
Yury Aslamov - Software Developer, Ph.D.