How ranit-007/baundule works
Baundule is a streetwear ecommerce storefront with customer accounts and an admin console. Shoppers browse products, manage a cart and wishlist, apply coupons and pay at checkout; customers can also manage account details and submit product reviews. The graph highlights the documented storefront, checkout, review, and catalog-data layers. Many routes and admin capabilities are visible only in the file tree, so their internal calls are not inferred.
Main entry points: prisma.ts Application database · checkout-client.tsx Checkout · checkout.ts Checkout actions · product-client.tsx Product detail
Components 21
Storefront
- Home experience
components/home/homepage.tsx - Shop & collections
app/shop - Product detail
app/product/[slug]/product-client.tsx - Product cards
components/ui/product-card.tsx
Shopping
- Cart state
components/providers/store-provider.tsx - Checkout
app/checkout/checkout-client.tsx - Checkout actions
app/actions/checkout.ts - Payment verification
app/actions/payment.ts - Payment webhook
app/api/webhooks/razorpay/route.ts
Accounts & Reviews
- Account pages
app/account - Authentication
auth.ts - Product reviews
components/product/reviews-section.tsx - Review actions
app/actions/reviews.ts - Review service
lib/review-service.ts
Store Operations
- Admin console
app/admin - Admin actions
app/actions - Catalog seeding
app/api/admin/seed/route.ts
Platform Services
- Catalog data
lib/shop-data.ts - Application database
lib/prisma.ts
Other components
- Shopper
- Razorpay
Connections 28
- Shopper → Home experience: browses
- Shopper → Shop & collections: browses
app/shop/shop-client.tsx - Shopper → Product detail: views
app/product/[slug]/product-client.tsx - Home experience → Catalog data: loads catalog
- Shop & collections → Product cards: renders
app/shop/shop-client.tsx - Product detail → Product cards: renders related
app/product/[slug]/product-client.tsx - Product detail → Cart state: updates cart
app/product/[slug]/product-client.tsx - Cart state → Application database: syncs cart
components/providers/store-provider.tsx - Shopper → Checkout: checks out
app/checkout/checkout-client.tsx - Checkout → Checkout actions: creates order
app/checkout/checkout-client.tsx - Checkout → Checkout actions: validates coupon
app/checkout/checkout-client.tsx - Checkout → Payment verification: verifies payment
app/checkout/checkout-client.tsx - Checkout actions → Application database: reads and writes
app/actions/checkout.ts - Checkout actions → Razorpay: creates payment
app/actions/checkout.ts - Payment verification → Razorpay: verifies payment
- Razorpay → Payment webhook: sends events
app/api/webhooks/razorpay/route.ts - Payment webhook → Application database: updates orders
app/api/webhooks/razorpay/route.ts - Shopper → Account pages: manages account
app/account/page.tsx - Account pages → Application database: reads account
app/account/page.tsx - Shopper → Product reviews: manages reviews
components/product/reviews-section.tsx - Product reviews → Review actions: updates or deletes
components/product/reviews-section.tsx - Review actions → Review service: checks and recalculates
app/actions/reviews.ts - Review actions → Application database: reads and writes
app/actions/reviews.ts - Review service → Application database: aggregates ratings
lib/review-service.ts - Admin console → Admin actions: invokes
app/admin/reviews/[id]/review-actions-client.tsx - Admin actions → Application database: manages records
app/actions/reviews.ts - Catalog seeding → Application database: seeds catalog
app/api/admin/seed/route.ts - Catalog seeding → Authentication: checks admin
app/api/admin/seed/route.ts