Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.52 KB

File metadata and controls

61 lines (44 loc) · 2.52 KB

Interactive Graph (server-side application)

.NET Core

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).

Getting Started

Configuration

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.

Run application

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

Built with

Author

Yury Aslamov - Software Developer, Ph.D.