How kunalrawat16/menugo works
MenuGo is a multi-business digital-menu and ordering application with customer-facing menus, checkout and order tracking, plus owner onboarding and dashboard tools. The principal workflow is browsing a business menu, building a cart, submitting an order, and following its status; owners configure the business and manage menus and orders. Authentication and persistence support these workflows. The README is only the default Next.js starter text, so product capabilities and connections here rely on the supplied tree and source excerpts/index; unsampled routes are represented cautiously.
Main entry points: order.actions.js Order actions · restaurant.actions.js Business actions · route.js Order API · db.js Database connection
Components 27
Customer ordering
- Public menu
app/[slug]/MenuClient.js - Menu components
components - Cart state
components/menu/CartContext.tsx - Checkout
app/[slug]/checkout/page.tsx - Order actions
app/actions/order.actions.js - Order tracking
components/menu/OrderStatusTracker.tsx
Business operations
- Business onboarding
app/onboard/page.tsx - Business actions
app/actions/restaurant.actions.js - Menu management
app/dashboard/menu/page.tsx - Menu actions
app/actions/menu.actions.js - Owner dashboard
app/dashboard/page.tsx - Analytics
app/dashboard/analytics/page.tsx - Platform admin
app/admin/SuperAdminClient.js - Admin actions
app/actions/admin.actions.js
Platform services
- Authentication actions
app/actions/auth.actions.js - Session and access
lib/auth.js - Order API
app/api/orders/route.js - Order event stream
app/api/orders/stream/route.js - Image upload
app/api/upload/route.js - Cloudinary
Persistence
- Database connection
lib/db.js - Business records
models/Business.js - Restaurant records
models/Restaurant.js - Order records
models/Order.js - User records
models/User.js
Other components
- Customer
- MongoDB
Connections 31
- Customer → Public menu: browses
- Public menu → Menu components: renders
app/[slug]/MenuClient.js - Checkout → Cart state: reads
app/[slug]/checkout/page.tsx - Checkout → Order actions: submits to
app/[slug]/checkout/page.tsx - Order actions → Database connection: connects via
app/actions/order.actions.js - Order actions → Order records: reads and writes
app/actions/order.actions.js - Order actions → Business records: reads
app/actions/order.actions.js - Order actions → Session and access: checks access
app/actions/order.actions.js - Order actions → Order event stream: broadcasts events
- Order tracking → Order event stream: tracks events
- Business onboarding → Business actions: completes setup
app/onboard/page.tsx - Business actions → Session and access: checks access
app/actions/restaurant.actions.js - Business actions → Database connection: connects via
app/actions/restaurant.actions.js - Business actions → Business records: updates
app/actions/restaurant.actions.js - Menu management → Business actions: loads business
app/dashboard/menu/page.tsx - Menu management → Menu actions: loads and saves menu
app/dashboard/menu/page.tsx - Owner dashboard → Order actions: loads orders
app/dashboard/page.tsx - Owner dashboard → Business actions: loads business
app/dashboard/page.tsx - Analytics → Business actions: requests business data
app/dashboard/analytics/page.tsx - Analytics → Order actions: requests order data
app/dashboard/analytics/page.tsx - Platform admin → Admin actions: calls actions · Inferred; not shown in the code that was read.
- Authentication actions → Session and access: creates sessions
app/actions/auth.actions.js - Authentication actions → Database connection: connects via
app/actions/auth.actions.js - Authentication actions → User records: reads and writes
app/actions/auth.actions.js - Order API → Database connection: connects via
app/api/orders/route.js - Order API → Order records: reads and writes
app/api/orders/route.js - Order API → Business records: reads
app/api/orders/route.js - Order API → Restaurant records: uses
app/api/orders/route.js - Order API → Session and access: checks session
app/api/orders/route.js - Image upload → Cloudinary: uploads to
- Database connection → MongoDB: connects
lib/db.js