This reflects the current source layout and separates implemented code from remaining MVP work.
TalebElm/
├── src/
│ ├── TalebElm.Domain/
│ │ ├── Entities/ BaseEntity, User, Track, Module, Lesson, LessonResource,
│ │ │ Exam, ExamQuestion, ExamOption, TrackEnrollment, UserProgress,
│ │ │ ModuleProblem, GitHubTask, UserExternalAccount,
│ │ │ UserProblemCompletion, Technology, Resource,
│ │ │ CapstoneProject, ProjectMilestone
│ │ ├── Enums/ TrackStatus, LessonType, LessonResourceKind, UserRole,
│ │ │ ExternalPlatform, AccountVerificationStatus, ProblemKind,
│ │ │ TechnologyKind, ResourceKind, ResourceLevel, ResourceStatus
│ │ ├── Exceptions/ DomainException, NotFoundException, ValidationException,
│ │ │ ConflictException, ExternalServiceUnavailableException,
│ │ │ NotImplementedException
│ │ └── Interfaces/ Repository contracts and IUnitOfWork
│ ├── TalebElm.Application/
│ │ ├── DTOs/ Auth, Track, Module, Lesson, Resource, Exam, Progress,
│ │ │ Enrollment, and External client DTOs
│ │ ├── Services/Abstraction/ Service contracts, IPasswordHasher, ICodeforcesClient, IGitHubClient
│ │ ├── Services/Concrete/ Service implementations and PasswordHasher
│ │ ├── Validators/ Track, Module, Lesson, and Exam request validators
│ │ └── DependencyInjection.cs AddApplication() service and validator registration
│ ├── TalebElm.Infrastructure/
│ │ ├── Persistence/DbContext/ AppDbContext
│ │ ├── Persistence/Configurations/ Per-entity EF Core configurations
│ │ ├── Persistence/Repositories/ Repository implementations and UnitOfWork
│ │ ├── Migrations/ EF Core SQLite migration chain
│ │ └── DependencyInjection.cs AddInfrastructure() SQLite, UoW, and repository registration
│ └── TalebElm.Api/
│ ├── Controllers/ Auth, Health, Users, Tracks, Modules, Lessons, Exams, Progress
│ ├── Middlewares/ ExceptionHandlingMiddleware
│ └── Program.cs Composition root (AddInfrastructure + AddApplication + OpenAPI in Dev)
└── tests/TalebElm.Tests/
├── Infrastructure/ SQLite test fixture
├── UnitTests/ Entity, DTO, validator, service, repository, and configuration tests
└── IntegrationTests/ Controller, middleware, DI, migration-chain, and constraint tests
- Domain entities and enums exist for the core learning path (
User,Track,Module,Lesson,LessonResource,Exam,ExamQuestion,ExamOption,TrackEnrollment,UserProgress), external verification (ModuleProblem,GitHubTask,UserExternalAccount,UserProblemCompletion), Resource Hub (Technology,Resource), and Capstone (CapstoneProject,ProjectMilestone). - EF Core configurations and SQLite migrations exist for Users, Tracks, Modules, Lessons, LessonResources, Exams/Questions/Options, TrackEnrollments, UserProgress (including
CompletedRequiredProblems), Technology/Resource, UserExternalAccount (filtered unique indexes), andModuleProblem.GitHubTaskIdconstraints. - DI composition is consolidated into
AddApplication()andAddInfrastructure(configuration)(Decision 38). - Application services implemented:
TrackService(GetPagedAsync,GetAllAsync,CreateAsync),ModuleService,LessonService,ExamService(GetByIdAsync, server-sideSubmitAsync),TrackEnrollmentService,UserProgressService, andPasswordHasher. ExceptionHandlingMiddlewaremaps domain and FluentValidation exceptions to ProblemDetails with camelCaseerrorsandtraceId, and logs unhandled500failures safely.GET /api/healthandGET /api/tracks(paged) are wired; Swashbuckle OpenAPI/Swagger is enabled inDevelopment.
- M0 Foundations: Remaining
CancellationTokenpropagation (#432,#435), content-rule enforcement (#251), and optionalX-Correlation-IDheader (#325). - M1 Identity: Auth service, JWT configuration/validation, login throttling,
StudentOnly/AdminOnlypolicies, Users endpoints, and auth integration tests. - M2 Learning flow: Remaining controller wiring,
ExamService.CreateAsync(#273), and admin authoring endpoints. - M3 Automated Verification:
TaskVersionentity, remaining EF mapping (#343,#345),CodeforcesClient,GitHubClient, test fakes, verifiers, the shared dual gate (#444), and endpoints. - M4 Public Resource Hub: Hub read/admin services and endpoints, safe link-health checker, and the two-step
Resourcemigration. - M5 Capstone Projects: Automated milestone verification, derived track completion evaluator, and learner Capstone endpoints.
Domaindepends on nothing.Applicationdepends only onDomainabstractions andIUnitOfWork(neverDbContextorHttpContext).Infrastructureowns EF Core persistence and external HTTP clients with no business logic.UnitOfWork.SaveChangesAsync()is the single commit point.Apicontrollers call Application service interfaces and translate results to HTTP.Testsverify all layers offline with SQLite in-memory and fakes.
See FEATURE_INDEX.md for per-feature status, MVP_LEARNING_JOURNEY.md for the learner flow, and ARCHITECTURE.md for conventions.