mrozcan / Sample-N-Layer-Architecture

Sample N-Layer Web Api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

Sample N-Layer Web Api.

License:MIT License


Languages

Language:C# 94.6%Language:Dockerfile 5.4%