How learnsmartcoding/smartcertify-api-clean-architecture-dotnet9 works
Project Type & Purpose
• This is a Clean-Architecture .NET 9 Web API for an online course certification platform (“SmartCertify”).
• It follows a layered architecture (API, Application, Domain, Infrastructure) to enforce separation of concerns, maintainability, and testability.
File Structure Analysis
• Top-Level:
• LSC.SmartCertify.API – the ASP.NET Core Web API project (controllers, filters, middlewares, hosting/config).
• LSC.SmartCertify.Application – application services, DTOs, validators, interfaces.
• LSC.SmartCertify.Domain – core entities and domain models.
• LSC.SmartCertify.Infrastructure – EF Core DbContext, repository implementations, background services, storage service, database scripts.
• Configuration & Scripts:
• appsettings.json (Dev & Prod)
• launchSettings.json
• SQL script for schema
• NSwag/Swagger HTTP client definitions
• Patterns:
• Controllers → inject I*Service interfaces from Application layer.
• Application Services → inject I*Repository from Infrastructure.
• Domain Entities → POCO classes.
• Dependency inversion: Application and API depend on abstractions; Infrastructure implements them.
• BackgroundService classes for scheduled notifications, onboarding.
Key Architecture Insights from README
• Clean Architecture principles: API layer depends on Application, which depends on Domain, with Infrastructure at the outermost layer.
• Uses EF Core (DbContext in Infrastructure) for data access.
• Swagger / NSwag for API documentation.
• Integrations: Azure AD B2C, Microsoft Graph API, Azure Blob Storage (via StorageService), Azure Functions for serverless tasks.
• Monitoring with Azure Application Insights, Logging Middleware.