Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

DUMP Internship 19th homework

Notifications You must be signed in to change notification settings

dariomrk/Internship-19-Snouter

Repository files navigation

Internship-19-Snouter

Prerequisites

Technologies used:

  • ASP.NET Core
  • EF Core
  • Postgres

Overview

The solution is separated into four projects:

  • Api:

    Consists of controllers that handle incoming requests from clients and return appropriate responses. The controllers are responsible for processing the user input, calling the appropriate application logic, and returning the output to the client.

  • Application:

    Contains the core business logic and is responsible for processing data and orchestrating workflows. The application layer consists of services that encapsulate a set of related operations.

  • Data:

    Responsible for persisting and retrieving data from storage. It includes a database context that encapsulates the data access logic, and repositories that abstract away the details of data access.

  • Common:

    Contains common functionality and dependencies.

  • Contracts:

    Contains Request / Response data transfer classes.

Get started developing

Database

In the solution root directory run:

docker build -t snouter-development-database -f Dockerfile.Development .

Afterwards run:

docker run -d -p 5432:5432 --name snouter-development-database snouter-development-database

If you want to restart the container on boot run this instead:

docker run -d -p 5432:5432 --restart unless-stopped --name snouter-development-database snouter-development-database

These commands will create and run a Docker container containing a Postgres database.

Environments

In the Package Manager Console execute:

$env:ASPNETCORE_ENVIRONMENT = "Development"

Applying existing migrations

Open the Package Manager Console, change the default project to Data and execute: Update-Database.

Database diagram

Database diagram

About

DUMP Internship 19th homework

Resources

Stars

Watchers

Forks

Languages