How bhavya-jaiswal-hub/marketplace works
This is a multi-vendor marketplace: shoppers browse products, manage a cart, check out, and track orders; sellers manage profiles and products; administrators oversee categories, returns, settlements, and reporting. The frontend is a Next.js application and the backend is a NestJS API, with Prisma-backed persistence. The excerpts establish selected controller-to-service calls and authentication behavior; several business services and frontend integrations are indexed but not shown, so their unverified connections are omitted.
Main entry points: prisma.service.ts Database · seller.service.ts Seller Management · category.service.ts Categories · product.service.ts Product Catalog
Components 27
Shopping
- Storefront
frontend/src/app/page.tsx - Product Pages
frontend/src/app/products - Cart & Checkout
frontend/src/app/checkout/page.tsx - Order Pages
frontend/src/app/orders - Product API
backend/src/product/product.controller.ts - Product Catalog
backend/src/product/product.service.ts - Cart
backend/src/cart/cart.service.ts - Order API
backend/src/order/order.controller.ts - Orders
backend/src/order/order.service.ts - Payments
backend/src/payment/payment.service.ts - Returns & Refunds
backend/src/return-refund/return-refund.service.ts
Seller Operations
- Seller API
backend/src/seller/seller.controller.ts - Seller Management
backend/src/seller/seller.service.ts - Document Storage
backend/src/storage/storage.service.ts
Marketplace Administration
- Category API
backend/src/category/category.controller.ts - Categories
backend/src/category/category.service.ts - Inventory
backend/src/inventory/inventory.service.ts - Settlements
backend/src/settlement/settlement.service.ts - Reporting
backend/src/reporting/reporting.service.ts
Platform Services
- Authentication
backend/src/auth/auth.service.ts - Session Guard
backend/src/auth/auth.guard.ts - Role Guard
backend/src/auth/roles.guard.ts - Email
backend/src/email/email.service.ts - Notifications
backend/src/notification/notification.service.ts - Audit
backend/src/audit/audit.service.ts - Database
backend/src/prisma.service.ts
Other components
- Shopper
Connections 18
- Shopper → Storefront: browses
- Shopper → Product Pages: views products
- Shopper → Cart & Checkout: checks out
- Shopper → Order Pages: tracks orders
- Product API → Product Catalog: calls
backend/src/product/product.controller.ts - Order API → Orders: calls
backend/src/order/order.controller.ts - Seller API → Seller Management: calls
backend/src/seller/seller.controller.ts - Seller Management → Document Storage: uses
backend/src/seller/seller.service.ts - Category API → Categories: calls
backend/src/category/category.controller.ts - Authentication → Email: sends reset email
backend/src/auth/auth.service.ts - Session Guard → Database: checks session
backend/src/auth/auth.guard.ts - Product Catalog → Database: persists catalog
- Orders → Database: persists orders
- Categories → Database: reads and writes
backend/src/category/category.service.ts - Seller Management → Database: reads and writes
backend/src/seller/seller.service.ts - Inventory → Database: reads and writes
backend/src/inventory/inventory.service.ts - Notifications → Email: sends email
backend/src/notification/notification.service.ts - Categories → Audit: records actions
backend/src/category/category.service.ts