How harsh2code/mybag-mern works
MyBag is a full-stack e-commerce application. Shoppers browse products, inspect details, add items to a cart, manage account/address information, and place and pay for orders; administrators manage products and orders, while users can submit contact queries. The map follows the visible UI routing and backend routing/controller structure. Frontend-to-backend links are omitted where the supplied excerpts do not establish the runtime request path; several unsampled capabilities are represented by their exact paths from the tree.
Main entry points: App.jsx App routing · server.js HTTP API server · home.jsx Product discovery · order-controller.js Order and PayPal
Components 34
Web application
- App routing
MyBag/UI/src/App.jsx - Product discovery
MyBag/UI/src/pages/Shopping-View/home.jsx - Product details
MyBag/UI/src/Components/shopping/product-details.jsx - Checkout and payment
MyBag/UI/src/pages/Shopping-View/Checkout.jsx - Account and address
MyBag/UI/src/pages/Shopping-View/account.jsx - Order history
MyBag/UI/src/pages/Shopping-View/orders.jsx - Sign-in state
MyBag/UI/src/store/authSlice/authSlice.js - Product state
MyBag/UI/src/store/Shop/Product-Slice/ProductSlice.js - Cart state
MyBag/UI/src/store/cart-slice/cart-Slice.js - Address state
MyBag/UI/src/store/Shop/Address-Slice/Address-Slice.js - Order state
MyBag/UI/src/store/Shop/Order-Slice/OrderSlice.js
Shopping services
- Cart routes
MyBag/BackEnd/routers/Shop/Cart-routes.js - Cart operations
MyBag/BackEnd/Controllers/Shop/Cart-controller.js - Cart records
MyBag/BackEnd/models/Cart.js - Address routes
MyBag/BackEnd/routers/Shop/address-routes.js - Address operations
MyBag/BackEnd/Controllers/Shop/Address-controller.js - Catalog routes
MyBag/BackEnd/routers/Shop/Product-Routes.js - Catalog operations
MyBag/BackEnd/Controllers/Shop/Product-Controller.js - Product records
MyBag/BackEnd/models/Product.js - Order and payment routes
MyBag/BackEnd/routers/Shop/order-routes.js - Order and PayPal
MyBag/BackEnd/Controllers/Shop/order-controller.js - Payment capture
MyBag/BackEnd/Controllers/Shop/capturePayment.js - Order records
MyBag/BackEnd/models/Order.js
Administration
- Product management
MyBag/UI/src/pages/Admin-View/Products.jsx - Admin product state
MyBag/UI/src/store/admin/product-slice/productSlice.js - Admin product routes
MyBag/BackEnd/routers/admin/products-routes.js - Product administration
MyBag/BackEnd/Controllers/admin/product-controllers.js - Image upload
MyBag/BackEnd/helpers/Cloudinary.js
Identity and data
- HTTP API server
MyBag/BackEnd/server.js - Authentication routes
MyBag/BackEnd/routers/auth/auth-routes.js - Authentication
MyBag/BackEnd/Controllers/auth/auth-controllers.js - User records
MyBag/BackEnd/models/User.js
Other components
- Shopper
- Administrator
Connections 39
- Shopper → App routing: opens
MyBag/UI/src/App.jsx - Administrator → App routing: opens
MyBag/UI/src/App.jsx - App routing → Product discovery: routes to
MyBag/UI/src/App.jsx - App routing → Checkout and payment: routes to
MyBag/UI/src/App.jsx - App routing → Account and address: routes to
MyBag/UI/src/App.jsx - App routing → Order history: routes to
MyBag/UI/src/App.jsx - App routing → Product management: routes to
MyBag/UI/src/App.jsx - App routing → Sign-in state: dispatches
MyBag/UI/src/App.jsx - Product discovery → Product state: dispatches
MyBag/UI/src/pages/Shopping-View/home.jsx - Product discovery → Product details: renders
MyBag/UI/src/pages/Shopping-View/home.jsx - Product discovery → Cart state: dispatches
MyBag/UI/src/pages/Shopping-View/home.jsx - Product details → Cart state: dispatches
MyBag/UI/src/Components/shopping/product-details.jsx - Checkout and payment → Address state: uses
- Checkout and payment → Order state: uses
- Account and address → Address state: uses
- Order history → Order state: uses
- HTTP API server → Authentication routes: mounts
MyBag/BackEnd/server.js - HTTP API server → Cart routes: mounts
MyBag/BackEnd/server.js - HTTP API server → Address routes: mounts
MyBag/BackEnd/server.js - HTTP API server → Catalog routes: mounts
MyBag/BackEnd/server.js - HTTP API server → Order and payment routes: mounts
MyBag/BackEnd/server.js - HTTP API server → Admin product routes: mounts
MyBag/BackEnd/server.js - Authentication routes → Authentication: routes to
MyBag/BackEnd/routers/auth/auth-routes.js - Authentication → User records: reads and writes
MyBag/BackEnd/Controllers/auth/auth-controllers.js - Cart routes → Cart operations: routes to
MyBag/BackEnd/routers/Shop/Cart-routes.js - Cart operations → Cart records: reads and writes
MyBag/BackEnd/Controllers/Shop/Cart-controller.js - Cart operations → Product records: reads
MyBag/BackEnd/Controllers/Shop/Cart-controller.js - Address routes → Address operations: routes to
MyBag/BackEnd/routers/Shop/address-routes.js - Catalog routes → Catalog operations: routes to
MyBag/BackEnd/routers/Shop/Product-Routes.js - Catalog operations → Product records: reads
MyBag/BackEnd/Controllers/Shop/Product-Controller.js - Order and payment routes → Order and PayPal: routes to
MyBag/BackEnd/routers/Shop/order-routes.js - Order and payment routes → Payment capture: routes to
MyBag/BackEnd/routers/Shop/order-routes.js - Order and PayPal → Order records: reads and writes
MyBag/BackEnd/Controllers/Shop/order-controller.js - Order and PayPal → Cart records: reads
MyBag/BackEnd/Controllers/Shop/order-controller.js - Order and PayPal → Product records: reads
MyBag/BackEnd/Controllers/Shop/order-controller.js - Product management → Admin product state: uses
MyBag/UI/src/pages/Admin-View/Products.jsx - Admin product routes → Product administration: routes to
MyBag/BackEnd/routers/admin/products-routes.js - Product administration → Product records: reads and writes
MyBag/BackEnd/Controllers/admin/product-controllers.js - Product administration → Image upload: uploads images
MyBag/BackEnd/Controllers/admin/product-controllers.js