/Sample-N-Layer-Architecture

Sample N-Layer Web Api.

Primary LanguageC#MIT LicenseMIT

Hi! 👋

Sample N-Layer Architecture Project


This is a minimal sample project covering N-Layer architecture using .Net and some of the most used technologies. It consists of 7 different layers.

Layers:


  • Api
  • Api.Grpc
  • App.Core
  • App.Domain
  • App.Logic
  • App.Infrastructure
  • UnitTests

Following technologies used:


  • C#
  • .Net 8.0
  • EntityFrameworkCore
  • SQLite
  • MediatR
  • Mapster
  • Grpc.AspNetCore
  • MongoDB

How To Run?


You can run both api in terminal. Just use following code

Run Api: dotnet run '.\.Net N-tier.sln' --project .\Api\Api.csproj

Run Api.Grpc: dotnet run '.\.Net N-tier.sln' --project .\Api.Grpc\Api.Grpc.csproj

Run Both Api's In Docker docker compose -p api -f docker-compose.yml up -d

Or you can simply open Visual Studio and run the Api`s 😄

You can find Sample Grpc Client in here.

Happy Codding!