How pranav-ns/catherbridge works
CaterBridge is a catering and tiffin marketplace. Customers register or sign in, discover caterers, save favourites, request catering, review providers, plan subscriptions, and use wallet/payment features; caterers manage profiles and respond to requests. React pages and components use a shared Axios client to reach an Express API, whose route handlers implement the domain operations and persist marketplace records. The README documents major features beyond the sampled excerpts; those are represented where the tree provides paths, but their internal call chains are not inferred.
Main entry points: server.js Express API · App.jsx App routing · api.js API client · auth.routes.js Authentication
Components 27
Customer experience
- App routing
frontend/src/App.jsx - Caterer discovery
frontend/src/pages/Home.jsx - Customer pages
frontend/src/pages - Marketplace components
frontend/src/components - Chat assistant UI
frontend/src/components/ChatbotWidget.jsx - API client
frontend/src/services/api.js
Caterer experience
- Provider dashboard
frontend/src/pages/CatererDashboard.jsx
Marketplace API
- Express API
backend/server.js - Authentication
backend/routes/auth.routes.js - Caterer profiles
backend/routes/caterer.routes.js - Catering requests
backend/routes/request.routes.js - Reviews
backend/routes/review.routes.js - Tiffin subscriptions
backend/routes/subscription.routes.js - Favourites and referrals
backend/routes/user.routes.js - Wallet
backend/routes/wallet.routes.js - Payments
backend/routes/payment.routes.js - Chat endpoint
backend/routes/chat.routes.js - Gemini chat handler
backend/controllers/chat.controller.js - JWT protection
backend/middleware/auth.js
Domain data
- Client accounts
backend/models/User.js - Caterer records
backend/models/Caterer.js - Request records
backend/models/Request.js - Review records
backend/models/Review.js - Subscription records
backend/models/Subscription.js
Other components
- Customers
- Caterers
- Gemini API
Connections 33
- Customers → App routing: uses
README.md - Caterers → Provider dashboard: manages profile
README.md - App routing → Caterer discovery: routes to
frontend/src/App.jsx - App routing → Customer pages: routes to
frontend/src/App.jsx - App routing → Marketplace components: renders
frontend/src/App.jsx - App routing → Chat assistant UI: renders
frontend/src/App.jsx - Caterer discovery → API client: calls
frontend/src/pages/Home.jsx - Customer pages → API client: calls
frontend/src/pages/Dashboard.jsx - Provider dashboard → API client: calls
frontend/src/pages/CatererDashboard.jsx - Chat assistant UI → API client: calls
frontend/src/components/ChatbotWidget.jsx - API client → Express API: sends API requests
README.md - Express API → Authentication: mounts
backend/server.js - Express API → Caterer profiles: mounts
backend/server.js - Express API → Catering requests: mounts
backend/server.js - Express API → Reviews: mounts
backend/server.js - Express API → Tiffin subscriptions: mounts
backend/server.js - Express API → Favourites and referrals: mounts
backend/server.js - Express API → Wallet: mounts
backend/server.js - Express API → Payments: mounts
backend/server.js - Express API → Chat endpoint: mounts
backend/server.js - Authentication → Client accounts: creates and queries
backend/routes/auth.routes.js - Authentication → Caterer records: creates and queries
backend/routes/auth.routes.js - Caterer profiles → Caterer records: queries and updates
backend/routes/caterer.routes.js - Catering requests → Request records: creates and updates
backend/routes/request.routes.js - Reviews → Review records: creates and queries
backend/routes/review.routes.js - Reviews → Caterer records: updates rating
backend/routes/review.routes.js - Tiffin subscriptions → Subscription records: manages
backend/routes/subscription.routes.js - Favourites and referrals → Client accounts: updates and reads
backend/routes/user.routes.js - Wallet → Client accounts: reads and updates
backend/routes/wallet.routes.js - Catering requests → JWT protection: protects routes
backend/routes/request.routes.js - Authentication → JWT protection: protects routes
- Chat endpoint → Gemini chat handler: dispatches to
backend/routes/chat.routes.js - Gemini chat handler → Gemini API: generates replies
backend/controllers/chat.controller.js