TanerSaydam/2025-clean-architecture-setup
30.1
Weak · 8 November 2026
1.1k
lines of production code
C#
primary language
7
measurements over time
What this system is
This system is a .NET 9-based web API application structured around Clean Architecture principles, utilizing .NET Aspire for orchestration and service defaults. It provides employee management and user authentication capabilities, leveraging MediatR for command/query handling and Entity Framework Core for data persistence. The architecture separates concerns into domain, application, and infrastructure layers, with a modular WebAPI layer exposing endpoints for authentication and employee data.
Features
Added .NET Aspire AppHost and ServiceDefaults scaffolding
The solution now includes a new AppHost project that bootstraps the distributed application using .NET Aspire, specifically registering the CleanArhictecture\_2025\_WebAPI service. Additionally, a ServiceDefaults project was added to provide shared OpenTelemetry, health check, and service discovery configurations for the application.
_src/CleanArhictecture\_2025.AppHost, src/CleanArhictecture\2025.ServiceDefaults · high confidence
Initial Clean Architecture project structure and documentation
The repository now includes a complete Clean Architecture solution file (CleanArhictecture\_2025.sln) that organizes the project into a modular structure with separate projects for the Web API, service defaults, infrastructure, domain, application, and an app host. A new README.md provides setup instructions and lists the core libraries used, including MediatR, FluentValidation, Mapster, and Entity Framework Core.
(repo-wide) · high confidence
Initial implementation of employee management and authentication
This change introduces the core domain models and application logic for managing employees and handling user authentication. It adds the \Employee\ entity with associated data transfer objects and repository interfaces, alongside commands and queries for creating and retrieving employee records. Additionally, it implements a \LoginCommand\ for user authentication using ASP.NET Identity, supported by a \ValidationBehavior\ for request validation via MediatR and FluentValidation. The infrastructure layer is updated with Entity Framework Core configurations and database migrations to persist the new \Employees\ and \Users\ tables, including audit fields like \CreateAt\, \UpdateAt\, and \IsDeleted\.
_src/CleanArhictecture\_2025.Application, src/CleanArhictecture\_2025.Domain, src/CleanArhictecture\2025.Infrastructure · high confidence
Introduces structured API startup and routing for authentication and employee endpoints
The WebAPI project now uses a modular installer pattern to configure services and middleware, including JWT authentication, OData support, rate limiting, and CORS. A new exception handler standardizes error responses, while route registration is centralized in the Modules directory, exposing /auth and /employees endpoints via minimal APIs and controllers.
_src/CleanArhictecture\2025.WebAPI · high confidence
Dependencies
Introduce .NET 9 and Aspire-based project structure
The project has been restructured into a clean architecture with separate .csproj files for the AppHost, Application, Domain, Infrastructure, ServiceDefaults, and WebAPI layers. All projects target .NET 9.0 and include specific package references such as Aspire Hosting, MediatR, FluentValidation, Mapster, Keycloak authentication, Entity Framework Core, and OpenTelemetry, establishing the foundational dependencies for the application.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 43 → 30 (-12.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 79 → 79 (+0.0)
- Architecture 85 → 85 (+0.0)
- Maturity 53 → 50 (-2.4)
- Readiness 18 → 20 (+1.2)
- Security 65 → 67 (+1.4)
- Domain Modelling 15 (new)
- Performance 85 → 85 (+0.0)
Resolved (13)
- Documentation: no contributor guidance (README.md)
- End-of-life runtime: .NET net9.0 (src/CleanArhictecture_2025.WebAPI/CleanArhictecture_2025.WebAPI.csproj)
- Spelling inconsistency. The word 'Personnel' is misspelled as 'Personel' in the type name 'PersonelInformation' and its property 'TCNo' (though TCNo is an acronym, the type name is the primary issue). This is a consistent misspelling within the symbol, but it is an objective spelling error compared to standard English 'Personnel'.
- The concept of an employee's date of birth is named 'BirthOfDate'. This is grammatically incorrect and inconsistent with standard English usage ('DateOfBirth'). Additionally, the property 'FullName' in the Employee entity is a noun phrase, while 'BirthOfDate' attempts to be a compound noun but fails grammatically, creating a vocabulary inconsistency within the same domain model.
- Typographical inconsistency in casing. 'FullName' uses standard PascalCase. 'FulLAddress' appears to have a typo where the lowercase 'l' in 'Full' is replaced by an uppercase 'L' (or vice versa, but visually it looks like 'FulL'). This is a spelling error/typo rather than a consistent naming convention, and it differs from the correct spelling in 'FullName'.
- Vulnerable: OpenTelemetry.Exporter.OpenTelemetryProtocol
- XML-doc coverage: CleanArhictecture_2025.Application (src/CleanArhictecture_2025.Application/CleanArhictecture_2025.Application.csproj)
- XML-doc coverage: CleanArhictecture_2025.Domain (src/CleanArhictecture_2025.Domain/CleanArhictecture_2025.Domain.csproj)
- XML-doc coverage: CleanArhictecture_2025.Infrastructure (src/CleanArhictecture_2025.Infrastructure/CleanArhictecture_2025.Infrastructure.csproj)
- XML-doc coverage: CleanArhictecture_2025.ServiceDefaults (src/CleanArhictecture_2025.ServiceDefaults/CleanArhictecture_2025.ServiceDefaults.csproj)
- XML-doc coverage: CleanArhictecture_2025.WebAPI (src/CleanArhictecture_2025.WebAPI/CleanArhictecture_2025.WebAPI.csproj)
- redundant comment (src/CleanArhictecture_2025.Domain/Users/AppUser.cs)
- redundant comment (src/CleanArhictecture_2025.ServiceDefaults/Extensions.cs)
New (1)
- Documentation: no map of the repository's parts (README.md)
API surface
- Unchanged — 2 HTTP endpoints
Architecture
- Unchanged — 3 containers · 1 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
TanerSaydam/2025-clean-architecture-setup was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit efa35720180aa476ba549687c3dfe5de6b71c923 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.