How elieb-110/3-tier-web-architecture works
Polaris is a hardware-commerce application: shoppers browse products, manage wishlists and carts, and submit checkout; staff administer products, users, reports, and product categories (“wheels”). The browser entry point mounts page-specific managers, which use an API transport to reach ASP.NET controllers and MySQL-backed data. The README documents a REST API, while the source index and excerpts expose only selected client/server relationships; unverified feature links are omitted. The graph preserves major listed capabilities, but the README is sparse and does not describe a complete workflow.
Main entry points: ApiController.js API transport · Main.js Page bootstrap · Models API domain models · DbConnectionFactory.cs Connection factory
Components 25
Browser experience
- Page bootstrap
Project Code/Presentation Layer/scripts/Main.js - API transport
Project Code/Presentation Layer/scripts/Controllers/ApiController.js
Shopping and identity
- Product browsing
Project Code/Presentation Layer/scripts/ModelManagers/ProductManager.js - Product model
Project Code/Presentation Layer/scripts/Models/Products/Product.js - User accounts
Project Code/Presentation Layer/scripts/ModelManagers/UserManager.js - Cart operations
Project Code/Presentation Layer/scripts/ModelManagers/CartManager.js - Cart model
Project Code/Presentation Layer/scripts/Models/Cart/Cart.js - Wishlist
Project Code/Presentation Layer/scripts/ModelManagers/WishlistManager.js - Invoice handling
Project Code/Presentation Layer/scripts/ModelManagers/InvoiceManager.js - Active workbench
Project Code/Presentation Layer/scripts/ModelManagers/ActiveWorkbenchManager.js - Hardware validation
Project Code/Presentation Layer/scripts/Validators/HardwareValidator.js
Administration
- Product administration
Project Code/Presentation Layer/scripts/ModelManagers/AdminProductManager.js - User administration
Project Code/Presentation Layer/scripts/ModelManagers/AdminUserManager.js - Reports dashboard
Project Code/Presentation Layer/scripts/ModelManagers/AdminReportsManager.js - Workspace manager
Project Code/Presentation Layer/scripts/ModelManagers/WorkspaceManager.js
REST API
- Authentication endpoints
Project Code/API Layer/Controllers/AuthController.cs - Product endpoints
Project Code/API Layer/Controllers/ProductsController.cs - Order checkout
Project Code/API Layer/Controllers/OrdersController.cs - Wheel endpoints
Project Code/API Layer/Controllers/WheelsController.cs - Wishlist endpoints
Project Code/API Layer/Controllers/WishlistController.cs - Report endpoints
Project Code/API Layer/Controllers/ReportsController.cs
Data and models
- Connection factory
Project Code/API Layer/Data/DbConnectionFactory.cs - MySQL database
- API domain models
Project Code/API Layer/Models
Other components
- Shopper / staff
Connections 42
- Shopper / staff → Page bootstrap: opens pages
Project Code/Presentation Layer/scripts/Main.js - Page bootstrap → Product browsing: mounts routes
Project Code/Presentation Layer/scripts/Main.js - Page bootstrap → Product administration: mounts routes
Project Code/Presentation Layer/scripts/Main.js - Page bootstrap → User administration: mounts routes
Project Code/Presentation Layer/scripts/Main.js - Page bootstrap → Reports dashboard: mounts routes
Project Code/Presentation Layer/scripts/Main.js - Page bootstrap → Workspace manager: mounts routes
Project Code/Presentation Layer/scripts/Main.js - Page bootstrap → Active workbench: mounts routes
Project Code/Presentation Layer/scripts/Main.js - Product browsing → API transport: fetches via
Project Code/Presentation Layer/scripts/ModelManagers/ProductManager.js - Product browsing → Product model: creates
Project Code/Presentation Layer/scripts/ModelManagers/ProductManager.js - User accounts → API transport: sends requests
Project Code/Presentation Layer/scripts/ModelManagers/UserManager.js - User accounts → API domain models: uses user DTOs
Project Code/Presentation Layer/scripts/ModelManagers/UserManager.js - Cart operations → Cart model: updates
Project Code/Presentation Layer/scripts/ModelManagers/CartManager.js - Cart operations → Product model: recreates products
Project Code/Presentation Layer/scripts/ModelManagers/CartManager.js - Wishlist → API transport: sends requests
Project Code/Presentation Layer/scripts/ModelManagers/WishlistManager.js - Wishlist → Cart operations: adds to cart
Project Code/Presentation Layer/scripts/ModelManagers/WishlistManager.js - Active workbench → API transport: calls API
Project Code/Presentation Layer/scripts/ModelManagers/ActiveWorkbenchManager.js - Active workbench → Hardware validation: validates hardware
Project Code/Presentation Layer/scripts/ModelManagers/ActiveWorkbenchManager.js - Active workbench → Cart operations: uses cart
Project Code/Presentation Layer/scripts/ModelManagers/ActiveWorkbenchManager.js - Product administration → API transport: manages products
Project Code/Presentation Layer/scripts/ModelManagers/AdminProductManager.js - Product administration → Product model: uses product model
Project Code/Presentation Layer/scripts/ModelManagers/AdminProductManager.js - User administration → API transport: manages users
Project Code/Presentation Layer/scripts/ModelManagers/AdminUserManager.js - Reports dashboard → API transport: loads reports
- Workspace manager → API transport: uses API
- API transport → Authentication endpoints: requests auth
Project Code/Presentation Layer/scripts/Controllers/ApiController.js - API transport → Product endpoints: requests products
Project Code/Presentation Layer/scripts/Controllers/ApiController.js - API transport → Order checkout: submits checkout
Project Code/Presentation Layer/scripts/Controllers/ApiController.js - API transport → Wheel endpoints: requests wheels
Project Code/Presentation Layer/scripts/Controllers/ApiController.js - API transport → Wishlist endpoints: requests wishlist
Project Code/Presentation Layer/scripts/Controllers/ApiController.js - API transport → Report endpoints: requests reports
- Authentication endpoints → Connection factory: creates connections
Project Code/API Layer/Controllers/AuthController.cs - Product endpoints → Connection factory: creates connections
Project Code/API Layer/Controllers/ProductsController.cs - Order checkout → Connection factory: creates connections
Project Code/API Layer/Controllers/OrdersController.cs - Report endpoints → Connection factory: creates connections
Project Code/API Layer/Controllers/ReportsController.cs - Connection factory → MySQL database: opens connections
Project Code/API Layer/Data/DbConnectionFactory.cs - Wheel endpoints → MySQL database: queries wheel data
Project Code/API Layer/Controllers/WheelsController.cs - Wishlist endpoints → MySQL database: queries wishlist data
- Product endpoints → API domain models: maps products
Project Code/API Layer/Controllers/ProductsController.cs - Authentication endpoints → API domain models: maps users
Project Code/API Layer/Controllers/AuthController.cs - Order checkout → API domain models: maps checkout
Project Code/API Layer/Controllers/OrdersController.cs - Report endpoints → API domain models: returns metrics
Project Code/API Layer/Controllers/ReportsController.cs - Wheel endpoints → API domain models: maps wheels
Project Code/API Layer/Controllers/WheelsController.cs - Wishlist endpoints → API domain models: maps wishlist
Project Code/API Layer/Controllers/WishlistController.cs