How wesley-silva/ecommerceenterprise works
This is an ASP.NET Core e-commerce application. A shopper authenticates, browses the catalog, manages a cart, and checks out through the MVC web app and Compras BFF; backend services handle customer, order, catalog, and cart responsibilities. The README also describes payment choices, order confirmation, and status tracking, but the provided source does not establish their runtime wiring. Relationships below are limited to shown calls or README-described capabilities; unsampled integrations are not asserted.
Main entry points: Controllers/PedidoController.cs Order orchestration · Controllers/PedidoController.cs Order API · ClienteController.cs Customer API · Controllers Web application
Components 23
Shopper experience
- Web application
src/web/ECE.WebApp.MVC/Controllers - Web authentication
src/web/ECE.WebApp.MVC/Controllers/IdentidadeController.cs - Checkout UI
src/web/ECE.WebApp.MVC/Controllers/PedidoController.cs - Web API clients
src/web/ECE.WebApp.MVC/Services/ComprasBffService.cs
Commerce APIs
- Cart orchestration
src/api gatways/ECE.BFF.Compras/Controllers/CarrinhoController.cs - Order orchestration
src/api gatways/ECE.BFF.Compras/Controllers/PedidoController.cs - Cart API
src/services/ECE.Carrinho.API/Controllers/CarrinhoController.cs - Cart database
src/services/ECE.Carrinho.API/Data/CarrinhoContext.cs - Product catalog
src/services/ECE.Catalogo.API/Controllers/CatalogoController.cs - Customer API
src/services/ECE.Cliente.API/Controllers/ClienteController.cs - Customer database
src/services/ECE.Cliente.API/Data/ClienteContext.cs - Order API
src/services/ECE.Pedido.API/Controllers/PedidoController.cs - Order domain
src/services/ECE.Pedido.Domain/Pedidos/Pedido.cs - Voucher handling
src/services/ECE.Pedido.API/Controllers/VoucherController.cs - Payment options
src/api gatways/ECE.BFF.Compras/Services/PagamentoService.cs - Order tracking
src/services/ECE.Pedido.API/Application/Queries/PedidoQueries.cs
Identity
- Identity API
src/services/ECE.Identidade.API/Controllers/AuthController.cs - Identity database
src/services/ECE.Identidade.API/Data/ApplicationDbContext.cs
Shared infrastructure
- Integration message bus
src/building blocks/ECE.MessageBus/MessageBus.cs - Command and event mediator
src/building blocks/ECE.Core/Mediator/MediatorHandler.cs - API response base
src/building blocks/ECE.WebAPI.Core/Controller/MainController.cs - Response envelope
src/building blocks/ECE.Core/Comunication/ResponseResult.cs
Other components
- Shopper
Connections 26
- Shopper → Web application: uses
- Web application → Web authentication: routes login
src/web/ECE.WebApp.MVC/Controllers/IdentidadeController.cs - Web authentication → Identity API: authenticates
- Identity API → Integration message bus: requests registration
src/services/ECE.Identidade.API/Controllers/AuthController.cs - Identity API → Identity database: uses identity
- Integration message bus → Customer API: registration event
- Web application → Checkout UI: starts checkout
- Checkout UI → Web API clients: submits purchase
- Web API clients → Order orchestration: calls BFF
- Order orchestration → Cart API: reads cart
- Order orchestration → Product catalog: checks products
src/api gatways/ECE.BFF.Compras/Controllers/PedidoController.cs - Order orchestration → Customer API: gets address
src/api gatways/ECE.BFF.Compras/Controllers/PedidoController.cs - Order orchestration → Order API: finalizes order
- Cart orchestration → Cart API: manages cart
- Cart API → Cart database: reads and writes
src/services/ECE.Carrinho.API/Controllers/CarrinhoController.cs - Customer API → Command and event mediator: sends commands
src/services/ECE.Cliente.API/Controllers/ClienteController.cs - Customer API → Customer database: loads address
src/services/ECE.Cliente.API/Controllers/ClienteController.cs - Customer database → Command and event mediator: publishes events
src/services/ECE.Cliente.API/Data/ClienteContext.cs - Order API → Command and event mediator: submits command
src/services/ECE.Pedido.API/Controllers/PedidoController.cs - Order API → Order domain: uses order model
src/services/ECE.Pedido.API/Controllers/PedidoController.cs - Shopper → Product catalog: browses
- Shopper → Payment options: chooses payment
- Order API → Order tracking: queries status
- Shopper → Order tracking: tracks order
- Order API → Voucher handling: uses vouchers
- API response base → Response envelope: returns response
src/building blocks/ECE.WebAPI.Core/Controller/MainController.cs