How mellvvin/shopzone works
ShopZone is an e-commerce marketplace with buyer, seller, and admin workflows. Buyers discover products, manage a cart, place and pay for orders, then track delivery; bulk or heavy orders support seller and admin delivery quotes before buyer approval. Sellers apply and manage listings and orders, while admins review sellers, products, enquiries, orders, and payouts. The graph includes the React entry and routing, API routing and domain handlers, and Mongo-backed domain records. Some frontend pages and backend subsystems are indexed but unsampled, so their internal calls are not inferred.
Main entry points: server.js API server · App.jsx React app · orderController.js Order and delivery handlers · paymentController.js Payment handlers
Components 28
Storefront and account
- React app
frontend/src/App.jsx - Login and profile
frontend/src/pages/LoginPage.jsx - Catalog browsing
frontend/src/pages/ProductPage.jsx - Client state
frontend/src/redux/slices/authSlice.js
Commerce and fulfillment
- Cart and checkout
frontend/src/pages/PlaceOrderPage.jsx - Order tracking
frontend/src/pages/OrderPage.jsx - Payment flow
frontend/src/pages/PaymentPage.jsx - Order and delivery handlers
backend/controllers/orderController.js - Payment handlers
backend/controllers/paymentController.js
Seller and administration
- Seller dashboard
frontend/src/pages/SellerDashboardPage.jsx - Admin workflows
frontend/src/pages/AdminOrderListPage.jsx - Bulk enquiries
frontend/src/pages/BulkOrdersPage.jsx - Seller handlers
backend/controllers/sellerController.js - Enquiry handlers
backend/controllers/enquiryController.js
API and persistence
- API server
backend/server.js - Access control
backend/middleware/authMiddleware.js - User handlers
backend/controllers/userController.js - Product handlers
backend/controllers/productController.js - Notification handlers
backend/controllers/notificationController.js - User records
backend/models/User.js - Product records
backend/models/Product.js - Order records
backend/models/Order.js - Payment records
backend/models/Payment.js - Enquiry records
backend/models/Enquiry.js - Notification records
backend/models/Notification.js
Other components
- Buyer
- Seller
- Admin
Connections 42
- Buyer → React app: uses
- Seller → React app: uses
- Admin → React app: uses
- React app → Login and profile: routes to
frontend/src/App.jsx - React app → Catalog browsing: routes to
frontend/src/App.jsx - React app → Cart and checkout: routes to
frontend/src/App.jsx - React app → Order tracking: routes to
frontend/src/App.jsx - React app → Payment flow: routes to
frontend/src/App.jsx - React app → Seller dashboard: routes to
frontend/src/App.jsx - React app → Admin workflows: routes to
frontend/src/App.jsx - React app → Bulk enquiries: routes to
frontend/src/App.jsx - Login and profile → Client state: updates
- Catalog browsing → Client state: uses
- Cart and checkout → Order tracking: continues to
- Cart and checkout → API server: submits via API
- Payment flow → API server: submits via API
- Seller dashboard → API server: submits via API
- Admin workflows → API server: submits via API
- Bulk enquiries → API server: submits via API
- API server → User handlers: mounts routes
backend/server.js - API server → Product handlers: mounts routes
backend/server.js - API server → Order and delivery handlers: mounts routes
backend/server.js - API server → Payment handlers: mounts routes
backend/server.js - API server → Seller handlers: mounts routes
backend/server.js - API server → Enquiry handlers: mounts routes
backend/server.js - API server → Notification handlers: mounts routes
backend/server.js - Order and delivery handlers → Access control: routes protect
backend/routes/orderRoutes.js - User handlers → User records: reads and writes
backend/controllers/userController.js - Product handlers → Product records: reads and writes
backend/controllers/productController.js - Product handlers → User records: checks seller
backend/controllers/productController.js - Product handlers → Order records: checks purchase
backend/controllers/productController.js - Order and delivery handlers → Order records: reads and writes
backend/controllers/orderController.js - Order and delivery handlers → Product records: checks and updates stock
backend/controllers/orderController.js - Order and delivery handlers → Notification records: creates alerts
backend/controllers/orderController.js - Payment handlers → Payment records: uses
backend/controllers/paymentController.js - Payment handlers → Order records: updates orders
backend/controllers/paymentController.js - Payment handlers → Notification records: creates alerts
backend/controllers/paymentController.js - Seller handlers → Product records: manages listings
backend/controllers/sellerController.js - Seller handlers → Order records: manages fulfillment
backend/controllers/sellerController.js - Seller handlers → User records: checks seller
backend/controllers/sellerController.js - Enquiry handlers → Enquiry records: reads and writes
backend/controllers/enquiryController.js - Enquiry handlers → User records: uses
backend/controllers/enquiryController.js