How anhtanvinh123/24ct2_phan_ho_tan_vinh_cnpm_nt1 works
Vinh-SHOP is a fashion storefront with customer shopping flows and separate admin and employee work areas. The visible customer workflow runs from browsing products through cart and checkout to order history; App.jsx owns shared cart and user state, while page components provide the individual stages. Login, registration and order creation/history call PHP API endpoints. Admin and employee areas are present in the tree, but their route wiring and most page behavior are not shown, so those links are left unasserted.
Main entry points: App.jsx App state and routing · Home.jsx Store home · Products.jsx Product catalog · CustomerLayout.jsx Customer layout
Components 21
Customer storefront
- App state and routing
src/App.jsx - Store home
src/pages/customer/Home.jsx - Product catalog
src/pages/customer/Products.jsx - Product detail
src/pages/customer/ProductDetail.jsx - Customer access
src/pages/customer - Customer profile
src/pages/customer/Profile.jsx - Account API
Shopping and orders
- Shopping cart
src/pages/customer/Cart.jsx - Checkout
src/pages/customer/Checkout.jsx - Order history
src/pages/customer/Orders.jsx - Invoice view
src/pages/customer/Invoice.jsx - Order API
Staff operations
- Admin workspace
src/pages/admin - Employee workspace
src/pages/employee
Shared UI and data
- Role navigation
src/components/Sidebar.jsx - Product sample data
src/data/products.js - Product card
src/components/ProductCard.jsx - Customer layout
src/layouts/CustomerLayout.jsx - Store header
src/components/Header.jsx - Store footer
src/components/Footer.jsx
Other components
- Shopper
Connections 21
- Shopper → App state and routing: uses storefront
- App state and routing → Store home: renders
src/App.jsx - App state and routing → Product catalog: renders
src/App.jsx - App state and routing → Product detail: renders
src/App.jsx - App state and routing → Customer access: renders
src/App.jsx - App state and routing → Customer profile: renders
src/App.jsx - App state and routing → Shopping cart: renders
src/App.jsx - App state and routing → Checkout: renders
src/App.jsx - App state and routing → Order history: renders
src/App.jsx - App state and routing → Invoice view: renders
src/App.jsx - App state and routing → Account API: requests account
src/App.jsx - Checkout → Order API: creates order
src/pages/customer/Checkout.jsx - Order history → Order API: fetches orders
src/pages/customer/Orders.jsx - Store home → Product sample data: reads
src/pages/customer/Home.jsx - Product catalog → Product sample data: reads
src/pages/customer/Products.jsx - Store home → Product card: renders
src/pages/customer/Home.jsx - Product catalog → Product card: renders
src/pages/customer/Products.jsx - Customer layout → Store header: renders
src/layouts/CustomerLayout.jsx - Customer layout → Store footer: renders
src/layouts/CustomerLayout.jsx - Admin workspace → Role navigation: uses navigation
- Employee workspace → Role navigation: uses navigation