How nguyentrong1717/tmdt_daln works
HCore Store is an e-commerce application with customer storefront, checkout and payment processing, administrative operations, and an AI shopping assistant. The principal workflow is shopper navigation through routed storefront pages, product selection, cart/checkout submission, payment confirmation, and order persistence. The sampled code directly confirms review management, payment callbacks, admin controls, and the RAG orchestration path. Several catalog and account capabilities are represented from the route tree; their internal API calls were not sampled, so uncertain links are omitted.
Components 27
Customer Storefront
- App Router
src/App.jsx - Catalog Browsing
src/pages/Home.jsx - Product Detail
src/pages/ProductDetail.jsx - Promotions Content
src/components/Sidebar/FlashSalePage.jsx - Cart Checkout
src/components/AdminDashboash/Checkout.jsx - Account Auth
src/components/LogUserPage/Login.jsx - Wishlist
src/components/Wishlist/Wishlist.jsx - Product Reviews
src/pages/ProductReviews.jsx - Chatbot UI
src/Chat_bot/ChatBot.jsx
Commerce Backend
- Commerce API
server.mjs - Commerce Store
server_mongodb.mjs - VNPAY Adapter
backend/vnpay.mjs - MoMo Adapter
backend/momo.mjs
Admin Operations
- Admin Console
src/components/AdminDashboash/Admin.jsx - Product Inventory
src/components/AdminDashboash/ProductManager.jsx - User Operations
src/components/AdminDashboash/UserManager.jsx - Review Operations
src/components/AdminDashboash/ReviewManager.jsx
AI Assistant
- RAG Client
src/Chat_bot/ragEngine.js - RAG API
rag_service/main.py - RAG Engine
rag_service/engine.py - Safety Guards
rag_service/guards.py - Knowledge Retrieval
rag_service/knowledge.py
External Services
- Gemini LLM
- VNPAY Gateway
- MoMo Gateway
Other components
- Shopper
- Administrator
Connections 31
- Shopper → App Router: opens storefront
- Administrator → App Router: opens admin
- App Router → Catalog Browsing: routes to
- App Router → Product Detail: routes to
- App Router → Promotions Content: routes to
- App Router → Cart Checkout: routes to
- App Router → Account Auth: routes to
- App Router → Wishlist: routes to
- App Router → Product Reviews: routes to
- App Router → Chatbot UI: renders widget
- Cart Checkout → Commerce API: submits checkout
- Commerce API → Commerce Store: reads and writes
- Commerce API → VNPAY Adapter: creates payment
- Commerce API → MoMo Adapter: creates payment
- VNPAY Adapter → VNPAY Gateway: calls gateway
- MoMo Adapter → MoMo Gateway: calls gateway
- VNPAY Gateway → VNPAY Adapter: sends IPN
- MoMo Gateway → MoMo Adapter: sends IPN
- Product Reviews → Commerce API: reads and posts
- Admin Console → Product Inventory: dispatches management
- Admin Console → User Operations: dispatches management
- Admin Console → Review Operations: dispatches management
- Product Inventory → Commerce API: updates products
- User Operations → Commerce API: updates users
- Review Operations → Commerce API: moderates reviews
- Chatbot UI → RAG Client: sends query
- RAG Client → RAG API: posts chat
- RAG API → RAG Engine: executes RAG
- RAG Engine → Safety Guards: checks safety
- RAG Engine → Knowledge Retrieval: retrieves context
- RAG Engine → Gemini LLM: generates reply