How oregonyuky/thrift-store works
Thrift Store is a monorepo of two independent ASP.NET Core applications: an admin/API and a public storefront. A shopper browses the catalog, maintains a session-backed cart, then checks out by Pix as an order or bag; the storefront calls the admin API, which owns persistence and payment integrations. The admin also provides management, identity, shipping, uploads, and notifications. The graph preserves documented product areas, but some admin routes and integrations are represented only at subsystem level because their implementations were not sampled.
Main entry points: BagController.cs Admin HTTP API · Program.cs Razor storefront · CartService.cs Cart service · CheckoutService.cs Checkout service
Components 29
Public storefront
- Razor storefront
web/src/AlieBrecho.Presentation/Program.cs - Store authentication
web/src/AlieBrecho.Application/Auth/AuthenticationService.cs - Catalog browsing
web/src/AlieBrecho.Application/Catalog/CatalogService.cs - Cart service
web/src/AlieBrecho.Application/Cart/CartService.cs - Session cart
web/src/AlieBrecho.Presentation/Infrastructure/SessionCartStore.cs - Checkout service
web/src/AlieBrecho.Application/Checkout/CheckoutService.cs - Admin API client
web/src/AlieBrecho.Infrastructure/Api/AlieBrechoApiClient.cs - Bearer forwarding
web/src/AlieBrecho.Infrastructure/Api/AlieBrechoApiAuthorizationHandler.cs - Instagram feed
web/src/AlieBrecho.Presentation/Instagram/InstagramFeedService.cs - Cart domain
web/src/AlieBrecho.Domain/Orders/Cart.cs
Admin API
- Admin HTTP API
admin/Presentation/ASPNET/BackEnd/Controllers/BagController.cs - Admin identity
admin/Infrastructure/Infrastructure/SecurityManager/AspNetIdentity/SecurityService.cs - Bag management
admin/Presentation/ASPNET/BackEnd/Controllers/BagController.cs - Catalog management
admin/Core/Application/Features/ProductManager/Commands/CreateProduct.cs - Order management
admin/Core/Application/Features/OrderManager/Commands/CreateOrder.cs - Shipping workflow
admin/Core/Application/Features/OrderManager/Commands/GenerateShippingLabel.cs - File management
admin/Core/Application/Features/FileImageManager/Commands/CreateImage.cs - Live notifications
admin/Presentation/ASPNET/BackEnd/Hubs/OrderNotificationsHub.cs
Admin domain and application
- Persistence contract
admin/Core/Application/Common/Repositories/IEntityDbSet.cs - Bag domain
admin/Core/Domain/Entities/Bag.cs - Shipping box
admin/Core/Domain/Entities/ShippingBox.cs
Admin infrastructure
- Payment integrations
admin/Infrastructure/Infrastructure/MercadoPagoManager/MercadoPagoService.cs - Shipping provider
admin/Infrastructure/Infrastructure/MelhorEnvioManager/MelhorEnvioService.cs - Image storage
admin/Infrastructure/Infrastructure/FileImageManager/FileImageService.cs - Identity service
admin/Infrastructure/Infrastructure/SecurityManager/AspNetIdentity/SecurityService.cs - EF data context
admin/Infrastructure/Infrastructure/DataAccessManager/EFCore/Contexts/DataContext.cs
Other components
- Shopper
- Admin user
Connections 32
- Shopper → Razor storefront: uses
README.md - Razor storefront → Store authentication: invokes
web/src/AlieBrecho.Presentation/Program.cs - Razor storefront → Catalog browsing: invokes
web/src/AlieBrecho.Presentation/Program.cs - Razor storefront → Cart service: invokes
web/src/AlieBrecho.Presentation/Program.cs - Cart service → Session cart: reads and writes
web/src/AlieBrecho.Application/Cart/CartService.cs - Cart service → Catalog browsing: loads products
web/src/AlieBrecho.Application/Cart/CartService.cs - Cart service → Cart domain: builds
web/src/AlieBrecho.Application/Cart/CartService.cs - Razor storefront → Checkout service: invokes
web/src/AlieBrecho.Presentation/Program.cs - Checkout service → Cart service: loads and clears
web/src/AlieBrecho.Application/Checkout/CheckoutService.cs - Checkout service → Admin API client: submits checkout
- Razor storefront → Admin API client: configures
web/src/AlieBrecho.Presentation/Program.cs - Admin API client → Bearer forwarding: attaches token
- Razor storefront → Instagram feed: registers
web/src/AlieBrecho.Presentation/Program.cs - Instagram feed → Instagram: fetches feed
- Razor storefront → Admin HTTP API: calls over HTTP
README.md - Admin user → Admin HTTP API: manages store
README.md - Admin HTTP API → Bag management: routes bag requests
admin/Presentation/ASPNET/BackEnd/Controllers/BagController.cs - Bag management → Bag domain: reads and writes
admin/Presentation/ASPNET/BackEnd/Controllers/BagController.cs - Admin HTTP API → Admin identity: handles identity
- Admin HTTP API → Catalog management: routes catalog requests
- Admin HTTP API → Order management: routes order requests
- Admin HTTP API → Shipping workflow: routes shipping requests
- Admin HTTP API → File management: routes upload requests
- Admin HTTP API → Live notifications: publishes updates
admin/Presentation/ASPNET/BackEnd/Controllers/BagController.cs - Admin identity → Identity service: delegates
admin/Infrastructure/Infrastructure/SecurityManager/AspNetIdentity/SecurityService.cs - Identity service → EF data context: uses
admin/Infrastructure/Infrastructure/SecurityManager/AspNetIdentity/SecurityService.cs - EF data context → Persistence contract: implements
admin/Infrastructure/Infrastructure/DataAccessManager/EFCore/Contexts/DataContext.cs - EF data context → Bag domain: persists
admin/Infrastructure/Infrastructure/DataAccessManager/EFCore/Contexts/DataContext.cs - Shipping workflow → Shipping provider: uses
- Shipping provider → Shipping box: uses package data
admin/Infrastructure/Infrastructure/MelhorEnvioManager/MelhorEnvioService.cs - Checkout service → Payment integrations: requests payment
- File management → Image storage: stores images