How kaivals/mylittlev2 works
Project type and purpose
• This is a monolithic .NET 9.0 Web API implementing a layered, Domain-Driven-Design-inspired architecture.
• The solution exposes REST endpoints (Controllers), orchestrates business logic (Application layer), manages persistence (Infrastructure layer), and defines core entities (Domain layer).
File structure
• Top level:
• mylittle-project (Presentation/WebAPI)
• mylittle-project.Application (Application services, DTOs, interfaces, UoW)
• mylittle-project.Domain (Entities, enums)
• mylittle-project.infrastructure (EF DbContext, repositories, service implementations)
• Patterns:
• Controllers → Application interfaces → Infrastructure services → EF Core DbContext
• Repository + Unit of Work
• DTOs for request/response models
• Configuration:
• appsettings.Development.json for connection strings
• launchSettings.json for local IIS/Kestrel
• Program.cs wiring up DI for interfaces and implementations