How 452-khang/techstore-web2026 works
TECHSTORE is an electronics-commerce application with a React storefront and an ASP.NET Core API backed by SQL Server. The principal customer journey is browsing/searching the catalog, managing a cart, applying a coupon, checking out, then tracking an order and reviewing purchased items. Separate branches cover account access, administration, and COD/VNPAY/MoMo payment. The README documents the product capabilities and controller-service-repository architecture; sampled source confirms routing, review behavior, authentication, and EF mappings. Most other feature-specific implementations were not sampled, so their internal links are shown as unverified where necessary.
Main entry points: App.jsx Store and admin routes · AppDbContext.cs EF data context · AdminOrdersPage.jsx Admin pages · PaymentsController.cs Payment callbacks
Components 34
Customer storefront
- Store and admin routes
frontend/src/App.jsx - Home and catalog
frontend/src/pages/HomePage.jsx - Product details
frontend/src/pages/ProductDetailPage.jsx - Account access
frontend/src/pages/AuthPage.jsx - Cart
frontend/src/pages/CartPage.jsx - Checkout
frontend/src/pages/CheckoutPage.jsx - Order history
frontend/src/pages/MyOrdersPage.jsx - Admin pages
frontend/src/pages/AdminOrdersPage.jsx
Commerce API
- Catalog endpoints
BackendApi/Controllers/ProductsController.cs - Authentication endpoints
BackendApi/Controllers/AuthController.cs - Cart endpoints
BackendApi/Controllers/CartController.cs - Order endpoints
BackendApi/Controllers/OrdersController.cs - Customer order endpoints
BackendApi/Controllers/MyOrdersController.cs - Payment callbacks
BackendApi/Controllers/PaymentsController.cs - Review endpoints
BackendApi/Controllers/ReviewsController.cs - Catalog services
BackendApi/Services/CatalogService.cs - Account service
BackendApi/Services/AuthService.cs - Cart service
BackendApi/Services/CartService.cs - Order services
BackendApi/Services/OrderService.cs - Order history service
BackendApi/Services/MyOrderService.cs - Review service
BackendApi/Services/ReviewService.cs
Admin API
- Admin catalog endpoints
BackendApi/Controllers/AdminProductsController.cs - Admin order endpoints
BackendApi/Controllers/AdminOrdersController.cs - Admin review endpoints
BackendApi/Controllers/AdminReviewsController.cs - Admin user endpoints
BackendApi/Controllers/AdminUsersController.cs - Coupon management
BackendApi/Controllers/AdminCouponsController.cs - Statistics endpoints
BackendApi/Controllers/AdminStatisticsController.cs - Review moderation
BackendApi/Services/AdminReviewService.cs
Data and payments
- EF data context
BackendApi/Data/AppDbContext.cs - SQL Server
- MoMo integration
BackendApi/Services/MomoPaymentService.cs
Other components
- Shopper
- Signed-in customer
- Administrator
Connections 42
- Shopper → Store and admin routes: browses
frontend/src/App.jsx - Signed-in customer → Store and admin routes: uses account
frontend/src/App.jsx - Administrator → Store and admin routes: opens admin
frontend/src/App.jsx - Store and admin routes → Home and catalog: routes to
frontend/src/App.jsx - Store and admin routes → Product details: routes to
frontend/src/App.jsx - Store and admin routes → Account access: routes to
frontend/src/App.jsx - Store and admin routes → Cart: routes to
frontend/src/App.jsx - Store and admin routes → Checkout: routes to
frontend/src/App.jsx - Store and admin routes → Order history: routes to
frontend/src/App.jsx - Store and admin routes → Admin pages: routes to
frontend/src/App.jsx - Home and catalog → Catalog endpoints: requests catalog
- Product details → Catalog endpoints: requests product
- Account access → Authentication endpoints: submits credentials
- Cart → Cart endpoints: updates cart
- Checkout → Order endpoints: places order
- Checkout → Payment callbacks: starts payment
- Order history → Customer order endpoints: loads orders
- Admin pages → Admin catalog endpoints: manages catalog
- Admin pages → Admin order endpoints: manages orders
- Admin pages → Admin review endpoints: moderates reviews
- Admin pages → Admin user endpoints: manages users
- Admin pages → Coupon management: manages coupons
- Admin pages → Statistics endpoints: views statistics
- Catalog endpoints → Catalog services: delegates
- Authentication endpoints → Account service: delegates
BackendApi/Controllers/AuthController.cs - Cart endpoints → Cart service: delegates
- Order endpoints → Order services: delegates
- Customer order endpoints → Order history service: delegates
- Review endpoints → Review service: delegates
BackendApi/Controllers/ReviewsController.cs - Admin review endpoints → Review moderation: delegates
BackendApi/Controllers/AdminReviewsController.cs - Account service → EF data context: uses repository
BackendApi/Services/AuthService.cs - Review service → EF data context: queries and saves
BackendApi/Services/ReviewService.cs - Review moderation → EF data context: queries and saves
BackendApi/Services/AdminReviewService.cs - Catalog services → EF data context: reads catalog
- Cart service → EF data context: reads and writes
- Order services → EF data context: reads and writes
- Order history service → EF data context: reads orders
BackendApi/Services/MyOrderService.cs - EF data context → SQL Server: persists data
README.md - Payment callbacks → MoMo integration: dispatches MoMo
- Payment callbacks → EF data context: records payment
- Payment callbacks → SQL Server: verifies VNPAY
README.md - Payment callbacks → Signed-in customer: returns payment status
README.md