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.
- Api
- Api.Grpc
- App.Core
- App.Domain
- App.Logic
- App.Infrastructure
- UnitTests
- C#
- .Net 8.0
- EntityFrameworkCore
- SQLite
- MediatR
- Mapster
- Grpc.AspNetCore
- MongoDB
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!