mohamedelareeg/DomainDrivenERP
47.7
Weak · 8 November 2026
10.9k
lines of production code
C#
primary language
7
measurements over time
What this system is
This system is a .NET 8-based enterprise resource planning (ERP) application built on a domain-driven architecture. It provides core business functionality for managing categories, chart of accounts, customers, and invoices, supported by a comprehensive identity and authorization framework. The system enforces structured development practices through Dockerized environments, automated code analysis, and unit testing, while utilizing MediatR for command handling and Redis/SQL Server for persistence.
Features
Add commands and queries for managing categories, COAs, customers, and invoices
Users can now create, update, and retrieve categories, chart of accounts (COA) heads, customer records, and customer invoices through new application layer features. This includes command handlers for creating and updating categories and COAs, as well as queries for retrieving categories by date range, by ID, and with children. For customers, it adds creation, retrieval (single and paginated lists), and invoice generation capabilities, along with domain event handlers for background checks and email notifications.
(repo-wide) · high confidence
Added Docker and development environment configuration files
The project now includes configuration files to support containerized development and testing. A .dockerignore file excludes unnecessary files from Docker builds, while docker-compose.yml and docker-compose.override.yml define the local testing environment, spinning up the API, Redis, SQL Server, and Seq services on a shared network. Additionally, a .editorconfig file enforces C\# coding conventions and naming rules, and Directory.Build.props introduces static code analysis tools (SonarAnalyzer and StyleCop) to the build process.
src · high confidence
Introduces authentication, authorization, and role management capabilities
Users can now log in, register new accounts, and reset passwords. The system also supports role-based access control, allowing administrators to create, edit, and delete roles, as well as assign roles and claims to users. A permission-based authorization filter has been added to enforce access control based on user claims. Additionally, an email service has been introduced to handle notifications, such as password reset codes.
(repo-wide) · high confidence
Introduces domain-driven architecture with centralized error handling and identity services
The application now enforces a domain-driven structure, introducing a global exception handler that maps specific exceptions (e.g., UnauthorizedAccessException, ValidationException) to standardized JSON error responses. The API pipeline is configured with MediatR behaviors for validation, logging, and authorization checks based on custom attributes. Additionally, the system introduces a comprehensive set of interfaces for identity management (authentication, roles, claims) and persistence (repositories, unit of work, caching), alongside domain models for Chart of Accounts (COA) and journaling.
(repo-wide) · high confidence
Test coverage
Added unit tests for the CreateCustomer command handler
Added a new unit test class, CreateCustomerCommandHandlerTests, which validates the behavior of the CreateCustomer command handler. The tests verify that the handler returns a failure result when the customer's email is not unique, returns a success result when the email is unique, calls the repository's AddAsync method in the success case, and ensures the unit of work's SaveChangesAsync is not called when the email is already in use.
src/test/DomainDrivenERP.Application.UnitTests/Features/Customers · high confidence
Dependencies
Upgrade to .NET 8 and update core dependencies
The project has been upgraded to .NET 8.0 across all components, including the API, application, domain, identity, infrastructure, persistence, and presentation layers. This update includes upgrading Entity Framework Core to version 8.0.4 and Microsoft.AspNetCore.Identity packages to 8.0.4. Other key dependencies have also been updated, including MediatR to 12.2.0, AutoMapper to 13.0.1, FluentValidation to 11.9.0, and Swashbuckle.AspNetCore to 6.5.0.
(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 49 → 48 (-1.4)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 59 → 59 (+0.0)
- Architecture 88 → 88 (-0.1)
- Maturity 65 → 65 (+0.0)
- Readiness 33 → 30 (-3.6)
- Security 62 → 62 (+0.0)
- Domain Modelling 61 → 61 (+0.0)
- Event-Driven 100 → 89 (-10.8)
- Performance 77 → 89 (+11.9)
Resolved (16)
- Documentation: no project overview (README.md)
- Inconsistent casing in namespace/class naming: 'RemoveItemfromOrder' uses camelCase for the 'from' preposition within a PascalCase context, whereas other commands like 'AddProduct' use standard PascalCase concatenation or clear separation. 'from' should be capitalized or separated.
- Inconsistent spelling of 'Retrieve' as 'Retrive' in both the namespace and class names for customer queries. While consistent within themselves, the spelling is incorrect and deviates from standard English, which is a naming error.
- Pluralization inconsistency: 'Childrens' is grammatically incorrect (should be 'Children'). This appears in multiple symbols related to COA hierarchy.
- Split DomainDrivenERP.Application
- Typo in 'Infrastructure' spelled as 'Infrustructure' in the dependency injection class, and 'initial' spelled as 'intial' in the migration class name. These are spelling errors in identifiers.
- Typo in repository name: 'Respository' instead of 'Repository'. This creates two distinct types for the same concept (Customer persistence), one cached and one likely raw, but the typo makes them visually distinct and confusing.
- XML-doc coverage: DomainDrivenERP.API (src/DomainDrivenERP.API/DomainDrivenERP.API.csproj)
- XML-doc coverage: DomainDrivenERP.Application (src/DomainDrivenERP.Application/DomainDrivenERP.Application.csproj)
- XML-doc coverage: DomainDrivenERP.Domain (src/DomainDrivenERP.Domain/DomainDrivenERP.Domain.csproj)
- XML-doc coverage: DomainDrivenERP.Identity (src/DomainDrivenERP.Identity/DomainDrivenERP.Identity.csproj)
- XML-doc coverage: DomainDrivenERP.Infrastructure (src/DomainDrivenERP.Infrastructure/DomainDrivenERP.Infrastructure.csproj)
- XML-doc coverage: DomainDrivenERP.Persistence (src/DomainDrivenERP.Persistence/DomainDrivenERP.Persistence.csproj)
- XML-doc coverage: DomainDrivenERP.Presentation (src/DomainDrivenERP.Presentation/DomainDrivenERP.Presentation.csproj)
- XML-doc coverage: DomainDrivenERP.RepositoriesPerformance (src/benchmark/DomainDrivenERP.RepositoriesPerformance/DomainDrivenERP.RepositoriesPerformance.csproj)
- redundant comment (src/DomainDrivenERP.Identity/Models/DefaultIdentityOptions.cs)
New (5)
- Documentation: no map of the repository's parts (README.md)
- Projects may be oversized for their cohesion (src/DomainDrivenERP.Application/DomainDrivenERP.Application.csproj)
- doc comments repeat the names (src/DomainDrivenERP.Domain/Shared/Guards/GuardExtensions.cs)
- redundant comment (src/DomainDrivenERP.Application/Behaviors/ValidationPiplineBehavior.cs)
- redundant comment (src/DomainDrivenERP.Persistence/Repositories/PrivateResolver.cs)
API surface
- Unchanged — 47 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
mohamedelareeg/DomainDrivenERP 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 1801548a3a5cdc3cb010386330efd9248545f52c — 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.