How shiwani2006/e-commerce-shopping-website works
ShopSphere is a multi-vendor marketplace: customers discover products, manage carts and wishlists, place orders, and handle payments; vendors manage shops and products; administrators oversee marketplace operations. The tree also includes reviews, rewards, coupons, analytics, and support features. The graph shows sampled routing, state, controller, and model relationships. Many feature pages and backend routes are listed but unsampled, and the README gives no further architecture details, so their connections are not inferred.
Main entry points: AppRoutes.jsx App routes · vendor.controller.js Vendor operations · Home.jsx Marketplace home · review.controller.js Review service
Components 29
Web experience
- App routes
routes/AppRoutes.jsx - Marketplace home
pages/public/Home.jsx - Admin console
pages/admin/AdminDashboard.jsx
Customer commerce
- AI assistant
pages/customer/AIAssistant.jsx - Customer dashboard
pages/customer/CustomerDashboard.jsx - Customer profile
pages/customer/CustomerProfile.jsx - Customer orders
pages/customer/Orders.jsx - Customer payments
pages/customer/Payments.jsx - Cart state
context/CartContext.jsx - Wishlist state
context/WishlistContext.jsx - Wishlist API client
api/wishlistApi.js - Payments API client
api/paymentsApi.js - Security API client
api/securityApi.js - Product API client
api/productApi.js
Marketplace operations
- Admin operations
controllers/admin.controller.js - Vendor operations
controllers/vendor.controller.js
API services
- Review endpoints
routes/review.routes.js - Review service
controllers/review.controller.js - Product endpoints
routes/product.routes.js - Product service
controllers/product.controller.js - Vendor endpoints
routes/vendor.routes.js - Token authentication
middlewares/auth.middleware.js - Order service
controllers/order.controller.js
Marketplace data
- Review records
models/Review.model.js - Product records
models/Product.model.js - Order records
models/Order.model.js - User records
models/User.model.js - Vendor records
models/Vendor.model.js
Other components
- Shopper
Connections 31
- Shopper → App routes: opens
routes/AppRoutes.jsx - App routes → Marketplace home: routes to
routes/AppRoutes.jsx - App routes → Admin console: routes to
routes/AppRoutes.jsx - App routes → AI assistant: routes to
routes/AppRoutes.jsx - App routes → Customer dashboard: routes to
routes/AppRoutes.jsx - App routes → Customer profile: routes to
routes/AppRoutes.jsx - App routes → Customer orders: routes to
routes/AppRoutes.jsx - App routes → Customer payments: routes to
routes/AppRoutes.jsx - Marketplace home → Cart state: uses
pages/public/Home.jsx - Marketplace home → Wishlist state: uses
pages/public/Home.jsx - Marketplace home → Product API client: requests products
pages/public/Home.jsx - Customer profile → Wishlist state: uses
pages/customer/CustomerProfile.jsx - Customer profile → Wishlist API client: requests wishlist
- Customer payments → Payments API client: requests payments
pages/customer/Payments.jsx - Customer payments → Security API client: requests security
pages/customer/Payments.jsx - Review endpoints → Token authentication: authenticates
routes/review.routes.js - Review endpoints → Review service: dispatches
routes/review.routes.js - Product endpoints → Product service: dispatches
routes/product.routes.js - Vendor endpoints → Vendor operations: dispatches
routes/vendor.routes.js - Review service → Review records: reads and writes
controllers/review.controller.js - Review service → Product records: updates ratings
controllers/review.controller.js - Review service → Order records: checks purchases
controllers/review.controller.js - Product service → Product records: reads and writes
controllers/product.controller.js - Order service → Order records: reads and writes
controllers/order.controller.js - Admin operations → User records: reads and writes
controllers/admin.controller.js - Admin operations → Order records: reads and writes
controllers/admin.controller.js - Admin operations → Product records: reads and writes
controllers/admin.controller.js - Vendor operations → User records: reads and writes
controllers/vendor.controller.js - Vendor operations → Vendor records: reads and writes
controllers/vendor.controller.js - Vendor operations → Product records: queries products
controllers/vendor.controller.js - Vendor operations → Order records: queries orders
controllers/vendor.controller.js