How rahulmavani666/adora_food works
Food-surplus-listing-platform is a Next.js marketplace connecting diners with restaurant surplus food. The principal flow is browsing available listings, claiming quantities into restaurant-specific orders, then monitoring order status and reviewing completed purchases; restaurant-facing dashboards manage listings and orders. Firebase provides application data services, while separate API routes handle email OTP verification and payment operations. The README gives no capability detail, so broader feature coverage is inferred from the application tree; edges are limited to relationships visible in excerpts or the source index.
Main entry points: ClientOrders.tsx Client orders · ClientDashboard.tsx Client marketplace · firebase-services.ts Marketplace services · page.tsx Dashboard router
Components 25
Web application
- Marketplace home
fullstack/app/page.tsx - Admin dashboard
fullstack/app/admin/page.tsx - Dashboard router
fullstack/app/dashboard/page.tsx - Offline support
fullstack/components/ClientWrapper.tsx - Service worker
fullstack/public/sw.js
Client marketplace
- Client dashboard route
fullstack/app/Clientdashboard/page.tsx - Client marketplace
fullstack/components/ClientDashboard.tsx - Client orders
fullstack/components/clientDashboardComp/ClientOrders.tsx - Order tracking
fullstack/components/OrderTracker.tsx - Order reviews
fullstack/components/clientDashboardComp/ReviewModal.tsx
Restaurant operations
- Restaurant dashboard route
fullstack/app/restaurantdashboard/page.tsx - Restaurant operations
fullstack/components/RestaurantDashboard.tsx - Order management
fullstack/components/restuarantDashboardComp/RestaurantOrderManager.tsx
Platform services
- Marketplace services
fullstack/lib/firebase-services.ts - Firebase client
fullstack/lib/firebase.ts - Firestore
Identity and payments
- Sign in
fullstack/app/(auth)/login/page.tsx - Sign up
fullstack/app/(auth)/signup/page.tsx - Send email OTP
fullstack/app/api/auth/send-email-otp/route.ts - Verify email OTP
fullstack/app/api/auth/verify-email-otp/route.ts - OTP store
fullstack/app/api/auth/_otpStore.ts - Auth provider
fullstack/app/api/auth/[...nextauth]/route.tsx - Create payment order
fullstack/app/api/payment/create-order/route.ts - Verify payment
fullstack/app/api/payment/verify/route.ts
Other components
- Visitor
Connections 16
- Visitor → Marketplace home: visits
- Visitor → Sign in: signs in
- Visitor → Sign up: registers
- Send email OTP → OTP store: stores code
fullstack/app/api/auth/send-email-otp/route.ts - Verify email OTP → OTP store: checks code
fullstack/app/api/auth/verify-email-otp/route.ts - Dashboard router → Client marketplace: renders
fullstack/app/dashboard/page.tsx - Dashboard router → Restaurant operations: renders
fullstack/app/dashboard/page.tsx - Client marketplace → Marketplace services: calls services
fullstack/components/ClientDashboard.tsx - Client marketplace → Order tracking: opens tracker
fullstack/components/ClientDashboard.tsx - Client orders → Marketplace services: calls services
fullstack/components/clientDashboardComp/ClientOrders.tsx - Client orders → Order tracking: renders tracking
fullstack/components/clientDashboardComp/ClientOrders.tsx - Client orders → Order reviews: renders review
fullstack/components/clientDashboardComp/ClientOrders.tsx - Marketplace services → Firebase client: uses client
fullstack/lib/firebase-services.ts - Firebase client → Firestore: initializes
fullstack/lib/firebase.ts - Restaurant operations → Order management: uses manager
- Offline support → Service worker: registers