How mahendraaldo21-dev/app works
This is an online shop with customer storefront, cart and order tracking, plus an admin console for authentication, order and coupon management, product/media content, and recovery. The main path is customer → routed storefront → shop/cart → backend API → persisted commerce data; the excerpts only directly show the coupon UI calling the API, so other page-to-endpoint links are omitted. The backend uses MongoDB and an object-storage integration. The health-check modules are included because they are named as core modules, though they serve development monitoring rather than shopping. Unsampled backend routes are grouped at the exact server file; detailed route ownership cannot be established from the excerpts.
Main entry points: App.js App router · AdminPage.jsx Admin console · server.py Commerce API · webpack-health-plugin.js Webpack health plugin
Components 20
Customer storefront
- App router
frontend/src/App.js - Home page
frontend/src/pages/HomePage.jsx - Shop page
frontend/src/pages/ShopPage.jsx - Cart and checkout
frontend/src/pages/CartPage.jsx - Cart state
frontend/src/lib/cart.js - Order tracking
frontend/src/pages/OrderTrackPage.jsx - Digital downloads
frontend/src/pages/DownloadPage.jsx
Admin console
- Admin login
frontend/src/pages/AdminLoginPage.jsx - Account recovery
frontend/src/pages/RecoveryResetPage.jsx - Admin console
frontend/src/pages/AdminPage.jsx - Order management
frontend/src/components/OrdersTab.jsx - Coupon management
frontend/src/components/CouponsManager.jsx - Test ID registry
frontend/src/constants/testIds/auth.js
Commerce backend
- API client
frontend/src/lib/api.js - Commerce API
backend/server.py - Commerce database
backend/server.py - Object storage
Health monitoring
- Webpack health plugin
frontend/plugins/health-check/webpack-health-plugin.js - Health endpoints
frontend/plugins/health-check/health-endpoints.js
Other components
- Shopper
Connections 17
- Shopper → App router: opens
frontend/src/App.js - App router → Home page: routes
frontend/src/App.js - App router → Shop page: routes
frontend/src/App.js - App router → Cart and checkout: routes
frontend/src/App.js - App router → Order tracking: routes
frontend/src/App.js - App router → Digital downloads: routes
frontend/src/App.js - App router → Admin login: routes
frontend/src/App.js - App router → Account recovery: routes
frontend/src/App.js - App router → Admin console: routes
frontend/src/App.js - App router → Cart state: provides context
frontend/src/App.js - Admin console → Order management: renders
- Admin console → Coupon management: renders
- Coupon management → API client: requests coupons
frontend/src/components/CouponsManager.jsx - Commerce API → Commerce database: reads and writes
backend/server.py - Commerce API → Object storage: stores and retrieves files
backend/server.py - Webpack health plugin → Health endpoints: supplies status
frontend/plugins/health-check/health-endpoints.js - Webpack health plugin → Health endpoints: registered by config
frontend/craco.config.js