How dhruvgupta-og/zappit works
Zappit is a multi-client food-ordering platform: customers discover stores and place/pay for orders, while store, delivery, and admin users manage fulfillment and platform data. Mobile customer and partner apps, a browser client, and an Express API form the main runtime. The source excerpts show API routing, payment and order handling, and MongoDB models. Many screen implementations and client-to-server request details were not sampled, so those relationships are omitted rather than inferred.
Main entry points: App.jsx Web routing · server.js HTTP server · AppNavigator.tsx App navigation · mongodb.js MongoDB
Components 34
Customer mobile
- App navigation
apps/zappit-customer/src/navigation/AppNavigator.tsx - Customer auth
apps/zappit-customer/src/store/authStore.ts - Store discovery
apps/zappit-customer/src/screens/HomeScreen.tsx - Store and menu
apps/zappit-customer/src/screens/StoreDetailScreen.tsx - Shopping cart
apps/zappit-customer/src/store/cartStore.ts - Checkout
apps/zappit-customer/src/screens/CheckoutScreen.tsx - Payment client
apps/zappit-customer/src/api/payment.ts - Order history
apps/zappit-customer/src/screens/OrdersScreen.tsx - Order tracking
apps/zappit-customer/src/screens/OrderTrackerScreen.tsx
Partner mobile
- Partner auth
apps/zappit-partner/src/store/authStore.ts - Store dashboard
apps/zappit-partner/src/screens/StoreDashboardScreen.tsx - Delivery dashboard
apps/zappit-partner/src/screens/DeliveryDashboardScreen.tsx - Partner admin
apps/zappit-partner/src/screens/AdminDashboardScreen.tsx
Browser app
- Web routing
web/src/App.jsx - Web cart
web/src/CartContext.jsx - Web checkout
web/src/pages/Checkout.jsx - Web admin
web/src/pages/AdminDashboard.jsx - Web store dashboard
web/src/pages/StoreDashboard.jsx - Web delivery dashboard
web/src/pages/DeliveryDashboard.jsx - Web order tracking
web/src/pages/OrderTracker.jsx - Payment callback
web/src/pages/PaymentCallback.jsx - Web API client
web/src/utils/api.js
API services
- HTTP server
backend/server.js - Request authentication
backend/middleware/authMiddleware.js - Store catalog routes
backend/services/store/storeRoutes.js - Order routes
backend/services/order/orderRoutes.js - Payment routes
backend/services/payment/webPaymentRoutes.js - Admin routes
backend/services/admin/adminRoutes.js - User routes
backend/services/user/userRoutes.js - Razorpay integration
backend/services/payment/razorpay.js
Persistence
- MongoDB
backend/database/mongodb.js
Other components
- Customer
- Store and delivery staff
- Browser user
Connections 39
- Customer → App navigation: uses
- App navigation → Customer auth: uses
apps/zappit-customer/src/navigation/AppNavigator.tsx - App navigation → Store discovery: routes to
apps/zappit-customer/src/navigation/AppNavigator.tsx - App navigation → Store and menu: routes to
apps/zappit-customer/src/navigation/AppNavigator.tsx - App navigation → Checkout: routes to
apps/zappit-customer/src/navigation/AppNavigator.tsx - App navigation → Order history: routes to
apps/zappit-customer/src/navigation/AppNavigator.tsx - App navigation → Order tracking: routes to
apps/zappit-customer/src/navigation/AppNavigator.tsx - Checkout → Shopping cart: reads
apps/zappit-customer/src/screens/CheckoutScreen.tsx - Checkout → Customer auth: reads
apps/zappit-customer/src/screens/CheckoutScreen.tsx - Checkout → Payment client: calls
apps/zappit-customer/src/screens/CheckoutScreen.tsx - Store and delivery staff → Partner auth: uses
- Partner auth → Store dashboard: enables
- Store and delivery staff → Store dashboard: manages store
- Store and delivery staff → Delivery dashboard: fulfills orders
- Store and delivery staff → Partner admin: administers
- Browser user → Web routing: uses
- Web routing → Web cart: provides
web/src/App.jsx - Web routing → Web checkout: routes to
web/src/App.jsx - Web routing → Web admin: routes to
web/src/App.jsx - Web routing → Web store dashboard: routes to
web/src/App.jsx - Web routing → Web delivery dashboard: routes to
web/src/App.jsx - Web routing → Web order tracking: routes to
web/src/App.jsx - Web routing → Payment callback: routes to
web/src/App.jsx - Web admin → Web API client: calls
web/src/pages/AdminDashboard.jsx - HTTP server → Request authentication: applies
backend/server.js - HTTP server → Store catalog routes: mounts
backend/server.js - HTTP server → Order routes: mounts
backend/server.js - HTTP server → Payment routes: mounts
backend/server.js - HTTP server → Admin routes: mounts
backend/server.js - HTTP server → User routes: mounts
backend/server.js - Request authentication → MongoDB: queries models
- Store catalog routes → MongoDB: reads catalog
- Order routes → MongoDB: reads and writes
backend/services/order/orderRoutes.js - Payment routes → MongoDB: reads and writes
- Admin routes → MongoDB: reads and writes
- User routes → MongoDB: reads and writes
backend/services/user/userRoutes.js - Payment routes → Razorpay integration: uses
backend/services/payment/webPaymentRoutes.js - Web API client → HTTP server: HTTP requests
- Payment client → HTTP server: HTTP requests