How jasontaylordev/cleanarchitecture works
This is a Clean Architecture application template: a user manages task lists and items through an Angular or React client, with ASP.NET endpoints dispatching application operations and infrastructure persisting the domain model. It also includes authentication, authorization, and weather features. The graph retains both documented client choices and the sampled todo, identity, and persistence layers; unsampled endpoint and client behavior is not expanded beyond relationships evidenced by the excerpts or source index.
Main entry points: ApplicationDbContext.cs EF database · TodoLists.cs Todo endpoints · app.module.ts Angular client · AppRoutes.jsx React client
Components 19
Web clients
- Angular client
src/Web/ClientApp/src/app/app.module.ts - Angular auth
src/Web/ClientApp/src/api-authorization/auth.service.ts - React client
src/Web/ClientApp-React/src/AppRoutes.jsx - React auth
src/Web/ClientApp-React/src/components/api-authorization/AuthContext.jsx
HTTP API
- Todo endpoints
src/Web/Endpoints/TodoLists.cs - Weather endpoint
src/Web/Endpoints/WeatherForecasts.cs - User endpoints
src/Web/Endpoints/Users.cs
Application
- Todo commands
src/Application/TodoItems/Commands - Todo queries
src/Application/TodoLists/Queries/GetTodos/GetTodos.cs - Weather query
src/Application/WeatherForecasts/Queries/GetWeatherForecasts/GetWeatherForecastsQuery.cs - Identity contract
src/Application/Common/Interfaces/IIdentityService.cs - Persistence contract
src/Application/Common/Interfaces/IApplicationDbContext.cs
Domain and infrastructure
- Todo model
src/Domain/Entities/TodoItem.cs - Todo lists
src/Domain/Entities/TodoList.cs - List colours
src/Domain/ValueObjects/Colour.cs - EF database
src/Infrastructure/Data/ApplicationDbContext.cs - Identity service
src/Infrastructure/Identity/IdentityService.cs - Database seeding
src/Infrastructure/Data/ApplicationDbContextInitialiser.cs
Other components
- User
Connections 18
- User → Angular client: uses
- User → React client: uses
- Angular client → Angular auth: initializes
src/Web/ClientApp/src/app/app.module.ts - React client → React auth: provides auth
src/Web/ClientApp-React/src/App.jsx - Angular client → Todo endpoints: requests
- React client → Todo endpoints: requests
- Todo endpoints → Todo commands: dispatches
src/Web/Endpoints/TodoLists.cs - Todo endpoints → Todo queries: dispatches
src/Web/Endpoints/TodoLists.cs - Weather endpoint → Weather query: dispatches
src/Application/WeatherForecasts/Queries/GetWeatherForecasts/GetWeatherForecastsQuery.cs - User endpoints → Identity service: uses
- Identity service → Identity contract: implements
src/Infrastructure/Identity/IdentityService.cs - Todo model → Persistence contract: models stored data
src/Application/Common/Interfaces/IApplicationDbContext.cs - Todo lists → Persistence contract: models stored data
src/Application/Common/Interfaces/IApplicationDbContext.cs - EF database → Persistence contract: implements
src/Infrastructure/Data/ApplicationDbContext.cs - EF database → Todo model: maps
src/Infrastructure/Data/ApplicationDbContext.cs - EF database → Todo lists: maps
src/Infrastructure/Data/ApplicationDbContext.cs - Todo lists → List colours: uses
src/Domain/Entities/TodoList.cs - Database seeding → EF database: initializes
src/Infrastructure/Data/ApplicationDbContextInitialiser.cs