How rabin-humagain/nepalbestdeals works
Nepal Best Deals is a deal-browsing and affiliate storefront with an admin interface for managing product listings. Shoppers browse featured deals, filter by category, explore price drops or category-based Top 10 guides, and follow affiliate links to Daraz. The pages fetch product records from Supabase; hot deals and Top 10 rankings are derived in the client. Admin product retrieval is visible in the sampled source, but the excerpt does not show the publish/delete database operations. The README is empty, so the map follows the available tree and source excerpts.
Main entry points: app/page.tsx Featured deals · hot-deals/page.tsx Hot deals · top-10s/page.tsx Top 10 guides · supabase.ts Product model and client
Components 12
Shopper experience
- Featured deals
app/page.tsx - Hot deals
app/hot-deals/page.tsx - Top 10 guides
app/top-10s/page.tsx - Category header
components/sticky-header.tsx - Deal card
components/product-card.tsx - Bottom navigation
components/bottom-nav.tsx - Application layout
app/layout.tsx
Deal management
- Admin dashboard
app/admin/page.tsx
Data and integration
- Product model and client
lib/supabase.ts - Supabase products
Other components
- Shopper
- Daraz affiliate
Connections 20
- Shopper → Featured deals: browses
- Shopper → Hot deals: browses
- Shopper → Top 10 guides: browses
- Shopper → Admin dashboard: manages deals
- Featured deals → Product model and client: fetches products
- Hot deals → Product model and client: fetches products
- Top 10 guides → Product model and client: fetches products
- Admin dashboard → Product model and client: fetches products
- Product model and client → Supabase products: queries products
- Featured deals → Category header: renders
- Hot deals → Category header: renders
- Top 10 guides → Category header: renders
- Featured deals → Deal card: renders deals
- Hot deals → Deal card: renders deals
- Deal card → Daraz affiliate: opens affiliate link
- Top 10 guides → Daraz affiliate: links to affiliate
- Application layout → Featured deals: wraps page
- Application layout → Hot deals: wraps page
- Application layout → Top 10 guides: wraps page
- Application layout → Admin dashboard: wraps page