How alexanderm2122/ecommerce-frontend works
This is an ASP.NET Core MVC ecommerce frontend that brokers browser workflows to a separate Node.js API backed by MySQL. The main shopper journey is browsing products, managing a cart, confirming a simulated purchase, and viewing the resulting order; the README also documents account login and administration. The graph separates MVC workflow handlers from API clients and the external backend. Edges are limited to calls visible in excerpts or source-index references and to relationships documented by the README; some controllers and service registrations were not sampled.
Main entry points: ProductosClientService.cs Product client · CategoriasClientService.cs Category client · ArchivosClientService.cs File client · ProductosController.cs Product management
Components 20
Shopping workflows
- Browse catalog
Controllers/ComprarController.cs - Manage cart
Controllers/CarritoController.cs - View orders
Controllers/PedidosController.cs
Identity and accounts
- Account workflows
Controllers/AuthController.cs
Store administration
- Product management
Controllers/ProductosController.cs - Category management
Controllers/CategoriasController.cs - Image management
Controllers/ArchivosController.cs - User management
Controllers/UsuariosController.cs - Audit log
Controllers/BitacoraController.cs
API integration
- Product client
Services/ProductosClientService.cs - Category client
Services/CategoriasClientService.cs - File client
Services/ArchivosClientService.cs - Purchase client
Services/ComprasClientService.cs - User client
Services/UsuariosClientService.cs - Authentication client
Services/AuthClientService.cs - Audit client
Services/BitacoraClientService.cs - API view models
Models - MVC runtime
Program.cs
Other components
- Shopper
- Node API and MySQL
Connections 25
- Shopper → Browse catalog: browses
- Shopper → Manage cart: manages
- Shopper → View orders: views
- Shopper → Account workflows: signs in
- Browse catalog → Product client: requests products
Controllers/ComprarController.cs - Browse catalog → Category client: loads categories
Controllers/ComprarController.cs - Manage cart → Purchase client: updates cart
Controllers/CarritoController.cs - View orders → Purchase client: loads orders
Controllers/PedidosController.cs - Product management → Product client: manages products
Controllers/ProductosController.cs - Product management → Category client: loads categories
Controllers/ProductosController.cs - Product management → File client: loads images
Controllers/ProductosController.cs - Category management → Category client: manages categories
Controllers/CategoriasController.cs - Image management → File client: manages images
Controllers/ArchivosController.cs - User management → User client: manages users
Controllers/UsuariosController.cs - Audit log → Audit client: requests audit
- Account workflows → Authentication client: sends auth requests
Controllers/AuthController.cs - Product client → File client: adds image content
Services/ProductosClientService.cs - Product client → Node API and MySQL: sends API requests
Services/ProductosClientService.cs - Category client → Node API and MySQL: sends API requests
Services/CategoriasClientService.cs - File client → Node API and MySQL: sends API requests
Services/ArchivosClientService.cs - Purchase client → Node API and MySQL: sends API requests
Services/ComprasClientService.cs - User client → Node API and MySQL: sends API requests
Services/UsuariosClientService.cs - Authentication client → Node API and MySQL: sends auth requests
Services/AuthClientService.cs - Node API and MySQL → API view models: returns API data
- MVC runtime → Authentication client: validates sessions
Program.cs