dauryjey / Dev06_08

Live coding application for Alterna Dev06 Back-end Fundamentals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev06_08

Live coding application for Alterna Dev06 Back-end Fundamentals

Setup

Download and install .net 7

Install PGSQL and PGAdmin.

Install EntityFramework tools

dotnet tool update dotnet-ef --version 7.0.10 --global

Verify Instalation

dotnet --version 
dotnet ef

Build

donet build

Run Test

dotnet test

Run Migrations

dotnet ef database update

Run Web App

dotnet run --project Okane.WebApi/Okane.WebApi.csproj

How to create a solution using CLI

Read this article

Development Environment

Download VS Code

Install the following extensions:

Architecture

Okane.Domain

Contain business rules for the application.

  • Entities
  • Domain Services

Okane.Application

Contains coordination logic between entities and gateways.

Service Implementations

Implement logic that works as an intermediary between the data-access/gateway layer and entities.

DTOs

Objects that work as inputs and outputs for service objects.

Validators

Validate DTOs.

  • Repository Interfaces

Repository Implementation

Implement logic to access, create, update and delete data. Each method should be the equivalent of a database query.

Okane.WebApi

Http interface for the application.

  • Controllers
  • Dependency Injection Configuration

Okane.Tests

  • Unit tests
  • Sample test data