Backend for the MVP system.
This project uses Clean Architecture to keep business logic separated from framework, database, and HTTP concerns.
-
Domain
Entities, value objects, events, and business rules. -
Application
Use cases, DTOs, interfaces, and validation. -
Infrastructure
EF Core, repositories, external services, and persistence details. -
WebAPI
HTTP endpoints and dependency injection setup.
- Direct application services instead of MediatR
- EF Core by default
- Raw SQL or Dapper for read-heavy paths when needed
- Explicit result objects for normal control flow
- .NET 10 SDK
- A database connection string
-
Update the connection string in
appsettings.Development.json. -
Run migrations:
dotnet ef database update --project Infrastructure --startup-project WebAPI
-
Run the containers
docker compose --profile local up -d (youll need docker installed)