How hominhdat2003/hominhdat_24ct2_bandienthoai works
This is a phone-commerce application: shoppers browse/search products, inspect details, maintain a cart, and submit orders; administrators manage products and order status. The client routes these experiences and calls backend APIs, whose controllers delegate to domain services and MySQL; product image uploads also use Cloudinary. The graph includes documented client features and the server domains, but unsampled route/controller details are represented cautiously; HTTP edges reflect the API paths visible in client services and controller route comments.
Main entry points: App.js Application Routes · ProductController.js Product Controller · product.service.js Product API Client · AuthContextProvider.js Auth State
Components 26
Customer and Admin Client
- Application Routes
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Storefront
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/HomeTemplate/index.js - Product Details
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/ProductTemplate/index.js - Shopping Cart
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/ShoppingCartTemplate/index.js - Product Admin
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/AdminTemplate/AdminListProduct/index.js - Order Admin
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/AdminTemplate/AdminOrder/index.js
Identity
- Login
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/LoginTemplate/index.js - Registration
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/RegisterTemplate/index.js - Auth State
HoMinhDat_24CT2_BANDIENTHOAI/client/src/context/AuthContextProvider.js - Auth API Client
HoMinhDat_24CT2_BANDIENTHOAI/client/src/services/auth.service.js - Auth Routes
HoMinhDat_24CT2_BANDIENTHOAI/server/routes/auth.js - Auth Controller
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/AuthController.js - User Service
HoMinhDat_24CT2_BANDIENTHOAI/server/services/user.services.js
Product Catalog
- Product API Client
HoMinhDat_24CT2_BANDIENTHOAI/client/src/services/product.service.js - Product Routes
HoMinhDat_24CT2_BANDIENTHOAI/server/routes/product.js - Product Controller
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/ProductController.js - Product Service
HoMinhDat_24CT2_BANDIENTHOAI/server/services/product.services.js
Orders
- Bill API Client
HoMinhDat_24CT2_BANDIENTHOAI/client/src/services/bill.service.js - Bill Routes
HoMinhDat_24CT2_BANDIENTHOAI/server/routes/bill.js - Bill Controller
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/BillController.js - Bill Service
HoMinhDat_24CT2_BANDIENTHOAI/server/services/bill.services.js
Persistence and Media
- MySQL Pool
HoMinhDat_24CT2_BANDIENTHOAI/server/database.js - Cloudinary
HoMinhDat_24CT2_BANDIENTHOAI/server/lib/cloudinary.js - Image Service
HoMinhDat_24CT2_BANDIENTHOAI/server/services/image.services.js
Other components
- Shopper
- Administrator
Connections 33
- Shopper → Application Routes: browses and buys
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Administrator → Application Routes: manages store
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Storefront: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Product Details: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Shopping Cart: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Login: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Registration: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Product Admin: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Application Routes → Order Admin: routes to
HoMinhDat_24CT2_BANDIENTHOAI/client/src/App.js - Login → Auth State: uses auth state
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/LoginTemplate/index.js - Auth State → Auth API Client: registers via
- Registration → Auth API Client: submits registration
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/RegisterTemplate/index.js - Auth State → Auth Routes: calls auth endpoints
HoMinhDat_24CT2_BANDIENTHOAI/client/src/context/AuthContextProvider.js - Auth API Client → Auth Routes: posts registration
HoMinhDat_24CT2_BANDIENTHOAI/client/src/services/auth.service.js - Auth Routes → Auth Controller: dispatches
HoMinhDat_24CT2_BANDIENTHOAI/server/routes/auth.js - Auth Controller → User Service: queries and creates users
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/AuthController.js - Storefront → Product API Client: loads products
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/HomeTemplate/index.js - Product Details → Product API Client: loads product
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/ProductTemplate/index.js - Product Admin → Product API Client: manages products
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/AdminTemplate/AdminListProduct/index.js - Product API Client → Product Routes: calls product endpoints
HoMinhDat_24CT2_BANDIENTHOAI/client/src/services/product.service.js - Product Routes → Product Controller: dispatches
HoMinhDat_24CT2_BANDIENTHOAI/server/routes/product.js - Product Controller → Product Service: runs product operations
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/ProductController.js - Product Controller → User Service: checks creator role
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/ProductController.js - Shopping Cart → Bill API Client: creates bills
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/ShoppingCartTemplate/index.js - Order Admin → Bill API Client: manages bills
HoMinhDat_24CT2_BANDIENTHOAI/client/src/components/Modules/AdminTemplate/AdminOrder/index.js - Bill API Client → Bill Routes: calls bill endpoints
HoMinhDat_24CT2_BANDIENTHOAI/client/src/services/bill.service.js - Bill Routes → Bill Controller: dispatches
- Bill Controller → Bill Service: runs bill operations
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/BillController.js - Product Service → MySQL Pool: queries products
HoMinhDat_24CT2_BANDIENTHOAI/server/services/product.services.js - User Service → MySQL Pool: queries users
HoMinhDat_24CT2_BANDIENTHOAI/server/services/user.services.js - Bill Service → MySQL Pool: queries bills
HoMinhDat_24CT2_BANDIENTHOAI/server/services/bill.services.js - Product Controller → Cloudinary: uploads product images
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/ProductController.js - Bill Controller → Product Service: reads product data
HoMinhDat_24CT2_BANDIENTHOAI/server/controllers/BillController.js