How trongnguyendz/tmdt-promax works
This is an e-commerce storefront and operations platform: customers browse products, manage carts and accounts, and place and pay for orders; staff and administrators manage fulfillment and catalog operations. The frontend sits in front of a versioned API gateway and domain services. The graph preserves major capabilities visible in the repository tree, including shipment, reviews, banners, support, and staff scheduling. Source excerpts establish several internal calls; many gateway-to-service and frontend-to-API connections are unverified because their route and client implementations were not sampled.
Main entry points: routes Gateway route handlers · orderController.js Orders and wishlist · App.vue Role-based web app · server.js API gateway
Components 21
Web experience
- Role-based web app
fe/src/App.vue - Shopping and checkout
fe/src/pages/customer - Admin workspace
fe/src/pages/admin - Staff workspace
fe/src/pages/Staff
API edge
- API gateway
be/api-gateway/server.js - Gateway route handlers
be/api-gateway/routes
Commerce services
- Accounts and identity
be/user-service/controllers/authController.js - Catalog and inventory
be/product-service/controllers/productController.js - Product reviews
be/product-service/controllers/reviewController.js - Orders and wishlist
be/order-service/controllers/orderController.js - Payment processing
be/payment-service/controllers/paymentController.js - Coupons
be/payment-service/controllers/couponController.js - Order records
be/order-service/models/orderModel.js - Payment records
be/payment-service/models/paymentModel.js
Operations services
- Notifications and invoices
be/notification-service/controllers/notificationController.js - GHN shipping
be-new/ghn-service/controllers/ghnController.js - Banner management
be/admin-service/controllers/bannerController.js - Staff and shifts
be-new/staff-service/controllers/staffController.js - Support operations
be-new/staff-service/controllers/supportController.js - Category interactions
be-new/user-service/controllers/userCategoryInteractionController.js
Other components
- Customer
Connections 20
- Customer → Role-based web app: uses
- Role-based web app → Shopping and checkout: renders
fe/src/App.vue - Role-based web app → Admin workspace: renders
fe/src/App.vue - Role-based web app → Staff workspace: renders
fe/src/App.vue - Shopping and checkout → API gateway: calls APIs
- Admin workspace → API gateway: calls APIs
- Staff workspace → API gateway: calls APIs
- API gateway → Gateway route handlers: mounts routes
be/api-gateway/server.js - Gateway route handlers → Accounts and identity: proxies requests
- Gateway route handlers → Catalog and inventory: proxies requests
- Gateway route handlers → Orders and wishlist: proxies requests
- Gateway route handlers → Payment processing: proxies requests
- Gateway route handlers → Notifications and invoices: proxies requests
- Orders and wishlist → Order records: reads and writes
be/order-service/controllers/orderController.js - Payment processing → Payment records: reads and writes
be/payment-service/controllers/paymentController.js - Orders and wishlist → Catalog and inventory: fetches and adjusts stock
be/order-service/controllers/orderController.js - Orders and wishlist → Notifications and invoices: sends invoice request
be/order-service/controllers/orderController.js - Payment processing → Orders and wishlist: updates order status
be/payment-service/controllers/paymentController.js - Staff and shifts → Accounts and identity: creates and updates accounts
be-new/staff-service/controllers/staffController.js - Staff and shifts → GHN shipping: uses shipping