How ibrahimallmamun/dostishop works
Boutique Marketplace is a multi-vendor commerce product: customers browse and buy across shops as guests, while vendors fulfil shop-scoped orders and administrators manage marketplace operations. The graph follows the documented storefront-to-API-to-order workflow and includes dashboard operations, reviews, and shared persistence. Source excerpts confirm product and order handling, review moderation, and API routing; other README- or tree-backed capabilities are represented at their exact enclosing paths. Unshown subsystem internals and cross-app HTTP calls are not asserted.
Main entry points: App.tsx Admin and vendor panel · order.controller.ts Checkout and orders · app.ts API application · order.routes.ts Order routes
Components 22
Customer storefront
- Storefront
store-frontend/src/app - Cart and checkout
store-frontend/src/app/checkout/page.tsx - Order tracking
store-frontend/src/app/track/page.tsx - Review submission
store-frontend/src/components/ReviewForm.tsx
Commerce API
- API application
api/src/app.ts - Product routes
api/src/routes/product.routes.ts - Product catalog
api/src/controllers/product.controller.ts - Order routes
api/src/routes/order.routes.ts - Checkout and orders
api/src/controllers/order.controller.ts - Review routes
api/src/routes/review.routes.ts - Review moderation
api/src/controllers/review.controller.ts
Marketplace operations
- Admin and vendor panel
dashboard/src/App.tsx - Shops and categories
api/src/routes/index.ts - Analytics and reports
api/src/controllers/analytics.controller.ts - Vendor payouts
api/src/controllers/payout.controller.ts - Marketplace content
api/src/controllers/content.controller.ts - Notifications
api/src/services/notify.service.ts
API foundation
- PostgreSQL data
api/src/lib/prisma.ts - Authentication and roles
api/src/middleware/auth.ts - Media uploads
api/src/services/upload.service.ts - Coupon rules
api/src/services/coupon.service.ts
Other components
- Guest customer
Connections 26
- Guest customer → Storefront: browses
- Storefront → Product catalog: requests catalog
- Guest customer → Cart and checkout: checks out
- Cart and checkout → Checkout and orders: submits checkout
- Guest customer → Order tracking: tracks order
- Guest customer → Review submission: submits review
- API application → Product routes: mounts API routes
api/src/app.ts - Product routes → Product catalog: dispatches
api/src/routes/product.routes.ts - API application → Order routes: mounts API routes
- Order routes → Checkout and orders: dispatches
api/src/routes/order.routes.ts - API application → Review routes: mounts API routes
- Review routes → Review moderation: dispatches
api/src/routes/review.routes.ts - Product catalog → PostgreSQL data: reads and writes
api/src/controllers/product.controller.ts - Checkout and orders → PostgreSQL data: reads and writes
api/src/controllers/order.controller.ts - Checkout and orders → Coupon rules: checks discounts
api/src/controllers/order.controller.ts - Checkout and orders → Notifications: sends order alerts
api/src/controllers/order.controller.ts - Review moderation → PostgreSQL data: reads and writes
api/src/controllers/review.controller.ts - Admin and vendor panel → API application: uses API
- Admin and vendor panel → Shops and categories: manages marketplace
- Admin and vendor panel → Analytics and reports: views metrics
- Admin and vendor panel → Vendor payouts: manages payouts
- Admin and vendor panel → Marketplace content: manages content
- Admin and vendor panel → Notifications: views alerts
- Admin and vendor panel → Media uploads: manages media
- Order routes → Authentication and roles: authenticates vendors
api/src/routes/order.routes.ts - Review routes → Authentication and roles: protects moderation
api/src/routes/review.routes.ts