How sebadri/bootcampcltnoviembre works
BootcampCLTNoviembre is a .NET Products API. Its main workflow is HTTP product requests routed through Minimal API endpoints and a custom CQRS sender to command or query logic, then PostgreSQL-backed persistence; responses and errors return through the API boundary. Writes use the domain Product aggregate and repository/unit-of-work interfaces, while reads use a separate DTO projection store. The README also documents SQL schema and seed scripts. Some handler wiring and registrations are not shown in the excerpts, so those links are omitted or marked unverified.
Main entry points: AppDbContext.cs EF DbContext · Sender.cs CQRS Sender · Commands Product Commands · GlobalExceptionHandler.cs Exception Mapping
Components 19
HTTP API
- Product Endpoints
src/BootcampCLTNoviembre.Api/Endpoints/ProductsEndpoints.cs - Exception Mapping
src/BootcampCLTNoviembre.Api/ExceptionHandling/GlobalExceptionHandler.cs
CQRS Application
- CQRS Sender
src/BootcampCLTNoviembre.Application/Messaging/Sender.cs - Product Commands
src/BootcampCLTNoviembre.Application/Products/Commands - Product Queries
src/BootcampCLTNoviembre.Application/Products/Queries - Pipeline Behaviors
src/BootcampCLTNoviembre.Application/Behaviors - Product Responses
src/BootcampCLTNoviembre.Application/Products/Responses.cs - Not Found Error
src/BootcampCLTNoviembre.Application/Common/NotFoundException.cs - Read Store Port
src/BootcampCLTNoviembre.Application/Abstractions/Data/IProductsReadStore.cs
Product Domain
- Product Aggregate
src/BootcampCLTNoviembre.Domain/Products/Product.cs - Domain Error
src/BootcampCLTNoviembre.Domain/DomainException.cs - Write Repository
src/BootcampCLTNoviembre.Domain/Products/IProductRepository.cs
PostgreSQL Persistence
- Product Repository
src/BootcampCLTNoviembre.Infrastructure/Persistence/ProductRepository.cs - Read Projections
src/BootcampCLTNoviembre.Infrastructure/ReadModels/ProductsReadStore.cs - EF DbContext
src/BootcampCLTNoviembre.Infrastructure/Persistence/AppDbContext.cs - Product Mapping
src/BootcampCLTNoviembre.Infrastructure/Persistence/Configurations/ProductConfiguration.cs
Other components
- API Client
- PostgreSQL
- Schema and Seed SQL
database/01_create_tables.sql
Connections 22
- API Client → Product Endpoints: sends requests
README.md - Product Endpoints → CQRS Sender: dispatches requests
src/BootcampCLTNoviembre.Api/Endpoints/ProductsEndpoints.cs - CQRS Sender → Product Commands: dispatches commands
- CQRS Sender → Product Queries: dispatches queries
- CQRS Sender → Pipeline Behaviors: wraps handlers
src/BootcampCLTNoviembre.Application/Messaging/Sender.cs - Product Commands → Write Repository: uses write port
src/BootcampCLTNoviembre.Application/Products/Commands/CreateProduct/CreateProductCommand.cs - Product Commands → Product Aggregate: changes aggregate
src/BootcampCLTNoviembre.Application/Products/Commands/CreateProduct/CreateProductCommand.cs - Product Commands → Not Found Error: raises when absent
src/BootcampCLTNoviembre.Application/Products/Commands/DeleteProduct/DeleteProductCommand.cs - Product Aggregate → Domain Error: throws on invalid data
src/BootcampCLTNoviembre.Domain/Products/Product.cs - Product Queries → Read Store Port: reads through
src/BootcampCLTNoviembre.Application/Products/Queries/GetProducts.cs - Product Queries → Product Responses: returns projections
src/BootcampCLTNoviembre.Application/Products/Queries/GetProducts.cs - Read Projections → Read Store Port: implements
src/BootcampCLTNoviembre.Infrastructure/ReadModels/ProductsReadStore.cs - Read Projections → EF DbContext: queries products
src/BootcampCLTNoviembre.Infrastructure/ReadModels/ProductsReadStore.cs - Product Repository → Write Repository: implements
src/BootcampCLTNoviembre.Infrastructure/Persistence/ProductRepository.cs - Product Repository → EF DbContext: tracks writes
src/BootcampCLTNoviembre.Infrastructure/Persistence/ProductRepository.cs - EF DbContext → Product Aggregate: persists aggregate
src/BootcampCLTNoviembre.Infrastructure/Persistence/AppDbContext.cs - EF DbContext → Product Mapping: loads mappings
src/BootcampCLTNoviembre.Infrastructure/Persistence/AppDbContext.cs - EF DbContext → PostgreSQL: reads and commits
README.md - Schema and Seed SQL → PostgreSQL: defines and seeds
README.md - Exception Mapping → Not Found Error: maps to 404
src/BootcampCLTNoviembre.Api/ExceptionHandling/GlobalExceptionHandler.cs - Exception Mapping → Domain Error: maps to 400
src/BootcampCLTNoviembre.Api/ExceptionHandling/GlobalExceptionHandler.cs - Exception Mapping → API Client: returns problem details
src/BootcampCLTNoviembre.Api/ExceptionHandling/GlobalExceptionHandler.cs