How arjun271201/bvm-main works
This is a devotional-media site and commerce storefront backed by Payload CMS. Visitors browse songs, videos, courses, and products; shoppers add items to a persistent cart, proceed to checkout, and have payments verified through Razorpay. Editors manage the site’s content and homepage through Payload’s admin interface. The source index and excerpts show the CMS configuration and selected client/API relationships; several page-to-data and feature integrations are unsampled, so those links are omitted or marked unverified.
Main entry points: payload.config.ts Payload configuration · create-order/route.ts Order creation · verify/route.ts Payment verification · SongsClient.tsx Song library
Components 19
Visitor experience
- Homepage
src/app/(frontend)/page.tsx - Song library
src/app/(frontend)/songs/SongsClient.tsx - Song player card
src/app/(frontend)/songs/SongCard.tsx - Video browsing
src/app/(frontend)/videos - Course browsing
src/components/CoursesClient.tsx
Commerce and payment
- Product storefront
src/app/(frontend)/store/StoreClient.tsx - Cart state
src/components/cart/CartContext.tsx - Checkout page
src/app/(frontend)/checkout/page.tsx - Order creation
src/app/api/checkout/create-order/route.ts - Payment verification
src/app/api/checkout/verify/route.ts - Razorpay
Content management
- Orders
src/collections/Orders.ts - Content collections
src/collections - Homepage settings
src/globals/Homepage.ts
CMS platform
- Payload admin
src/app/(payload)/admin/[[...segments]]/page.tsx - Payload configuration
src/payload.config.ts - Payload API
src/app/(payload)/api/[...slug]/route.ts - PostgreSQL
Other components
- Visitor
Connections 17
- Song library → Song player card: renders
src/app/(frontend)/songs/SongsClient.tsx - Product storefront → Cart state: updates
src/app/(frontend)/store/StoreClient.tsx - Checkout page → Order creation: submits order
- Order creation → Orders: creates and updates
src/app/api/checkout/create-order/route.ts - Order creation → Razorpay: creates payment order
src/app/api/checkout/create-order/route.ts - Payment verification → Razorpay: checks signature
src/app/api/checkout/verify/route.ts - Payment verification → Orders: marks paid
src/app/api/checkout/verify/route.ts - Payload configuration → Content collections: registers collections
src/payload.config.ts - Payload configuration → Homepage settings: registers global
src/payload.config.ts - Payload configuration → PostgreSQL: configures adapter
src/payload.config.ts - Payload admin → Payload configuration: uses CMS
- Payload API → Payload configuration: uses CMS
- Visitor → Homepage: browses
- Visitor → Song library: browses
- Visitor → Video browsing: browses
- Visitor → Course browsing: browses
- Visitor → Product storefront: shops