How ensiasi/eshoponweb works
eShopOnWeb is a single-process ASP.NET Core reference storefront, with a separate PublicApi used by its browser-based Blazor admin. The main user journey is browsing the catalog, managing a basket, and placing and reviewing orders; identity and catalog administration are additional capabilities. The graph shows domain services, persistence, and the admin/API boundary. Source excerpts and the SOURCE INDEX establish several internal calls; where implementation details were not sampled, domain-stage links are left out rather than inferred.
Main entry points: EfRepository.cs Repository · Program.cs Public API · CatalogItemService.cs Catalog item service · IdentityTokenClaimService.cs Token claims
Components 22
Storefront
- Web application
src/Web/Program.cs - Catalog and basket
src/Web/Pages - Checkout and orders
src/Web/Pages/Basket/Checkout.cshtml.cs - Order queries
src/Web/Features - Account management
src/Web/Controllers/ManageController.cs
Application Core
- Catalog domain
src/ApplicationCore/Entities/CatalogItem.cs - Basket service
src/ApplicationCore/Services/BasketService.cs - Order service
src/ApplicationCore/Services/OrderService.cs - Order aggregate
src/ApplicationCore/Entities/OrderAggregate/Order.cs
Infrastructure
- Repository
src/Infrastructure/Data/EfRepository.cs - Basket query
src/Infrastructure/Data/Queries/BasketQueryService.cs - Catalog database
src/Infrastructure/Data/CatalogContext.cs - Identity database
src/Infrastructure/Identity/AppIdentityDbContext.cs - Token claims
src/Infrastructure/Identity/IdentityTokenClaimService.cs
Public API
- Public API
src/PublicApi/Program.cs - Authentication endpoint
src/PublicApi/AuthEndpoints/AuthenticateEndpoint.cs - Catalog endpoints
src/PublicApi/CatalogItemEndpoints
Blazor Admin
- Admin interface
src/BlazorAdmin/Pages/CatalogItemPage/List.razor.cs - Catalog item service
src/BlazorAdmin/Services/CatalogItemService.cs - Catalog cache
src/BlazorAdmin/Services/CachedCatalogItemServiceDecorator.cs - HTTP client
src/BlazorAdmin/Services/HttpService.cs
Other components
- Shopper
Connections 14
- Shopper → Web application: browses store
README.md - Admin interface → Public API: uses API
README.md - Basket service → Repository: uses repository
src/ApplicationCore/Services/BasketService.cs - Order service → Repository: uses repository
src/ApplicationCore/Services/OrderService.cs - Order service → Order aggregate: creates orders
src/ApplicationCore/Services/OrderService.cs - Repository → Catalog database: uses context
src/Infrastructure/Data/EfRepository.cs - Basket query → Catalog database: queries context
src/Infrastructure/Data/Queries/BasketQueryService.cs - Public API → Repository: registers repository
src/PublicApi/Program.cs - Public API → Token claims: registers service
src/PublicApi/Program.cs - Authentication endpoint → Token claims: requests token
src/PublicApi/AuthEndpoints/AuthenticateEndpoint.cs - Token claims → Identity database: looks up user
- Catalog item service → HTTP client: sends API requests
src/BlazorAdmin/Services/CatalogItemService.cs - Catalog cache → Catalog item service: delegates requests
src/BlazorAdmin/Services/CachedCatalogItemServiceDecorator.cs - Catalog item service → Catalog endpoints: calls catalog API