How pushp2211/mealmatch works
MealMatch connects food providers and seekers through role-based web workflows: providers post surplus food and manage requests, while seekers discover nearby posts, request pickups, and track completion. The frontend includes map/location, profiles, settings, activity, and history; the Express backend handles authentication, food and pickup operations, and persistence in MongoDB, with Cloudinary for media. README capabilities inform the unsampled feature branches; edges are limited to relationships shown in excerpts or explicitly documented.
Main entry points: index.js HTTP API routes · App.jsx Role-based app · user.model.js User records · food.controller.js Food operations
Components 25
Web experience
- Role-based app
frontend/src/App.jsx
Identity and profiles
- Auth state
frontend/src/context/AuthContext.jsx - Login and signup
frontend/src/pages/auth/Login.jsx - Profile and settings
frontend/src/pages/profile/Profile.jsx
Food discovery
- Post surplus food
frontend/src/pages/provider/PostFood/PostFood.jsx - Find nearby seekers
frontend/src/pages/provider/FindSeeker/ProviderMapView.jsx - Find nearby food
frontend/src/pages/seeker/FindFood/SeekerFindFood.jsx - Map and location
frontend/src/components/maps/MapView.jsx
Pickup lifecycle
- Provider requests
frontend/src/pages/provider/Requests/ProviderRequests.jsx - Seeker requests
frontend/src/pages/seeker/Requests/SeekerRequests.jsx - Active pickups
frontend/src/pages/seeker/Active Pickups/SeekerActivePickups.jsx - History and activity
frontend/src/pages/history/History.jsx
Backend services
- HTTP API routes
backend/src/routes/index.js - Authentication
backend/src/controllers/auth/login.controller.js - Food operations
backend/src/controllers/food/food.controller.js - Pickup operations
backend/src/controllers/pickupRequest/pickupRequest.controller.js - Activity feed
backend/src/controllers/activity/activity.controller.js - User operations
backend/src/controllers/user/user.controller.js - User records
backend/src/models/user.model.js - Food posts
backend/src/models/food-post.model.js - Pickup requests
backend/src/models/pickup-request.model.js
Other components
- Provider or seeker
- Cloudinary media
- MongoDB
- Email delivery
Connections 40
- Provider or seeker → Role-based app: uses
README.md - Role-based app → Auth state: provides auth
frontend/src/App.jsx - Role-based app → Login and signup: routes to
frontend/src/App.jsx - Role-based app → Post surplus food: routes to
frontend/src/App.jsx - Role-based app → Find nearby seekers: routes to
frontend/src/App.jsx - Role-based app → Find nearby food: routes to
frontend/src/App.jsx - Role-based app → Provider requests: routes to
frontend/src/App.jsx - Role-based app → Seeker requests: routes to
frontend/src/App.jsx - Role-based app → Active pickups: routes to
frontend/src/App.jsx - Role-based app → History and activity: routes to
frontend/src/App.jsx - Auth state → HTTP API routes: requests auth
frontend/src/context/AuthContext.jsx - Login and signup → Auth state: updates session
frontend/src/pages/auth/Login.jsx - Post surplus food → HTTP API routes: submits posts
README.md - Find nearby seekers → Map and location: shows locations
README.md - Find nearby food → Map and location: shows routes
README.md - Find nearby food → HTTP API routes: searches food
README.md - Provider requests → HTTP API routes: manages requests
README.md - Seeker requests → HTTP API routes: tracks requests
README.md - Active pickups → HTTP API routes: completes pickup
README.md - Profile and settings → HTTP API routes: updates profile
- HTTP API routes → Authentication: dispatches auth
backend/src/routes/index.js - HTTP API routes → Food operations: dispatches food
backend/src/routes/index.js - HTTP API routes → Pickup operations: dispatches pickup
- HTTP API routes → User operations: dispatches user
- HTTP API routes → Activity feed: dispatches feed
backend/src/routes/index.js - Authentication → User records: reads sessions
backend/src/controllers/auth/login.controller.js - Authentication → Email delivery: sends verification
README.md - Food operations → Food posts: creates and searches
backend/src/controllers/food/food.controller.js - Food operations → User records: updates location
backend/src/controllers/food/food.controller.js - Food operations → Cloudinary media: uploads media
backend/src/controllers/food/food.controller.js - Pickup operations → Food posts: reserves quantity
backend/src/controllers/pickupRequest/pickupRequest.controller.js - Pickup operations → Pickup requests: creates and updates
backend/src/controllers/pickupRequest/pickupRequest.controller.js - Pickup operations → User records: reads location
backend/src/controllers/pickupRequest/pickupRequest.controller.js - Activity feed → Food posts: reads posts
backend/src/controllers/activity/activity.controller.js - Activity feed → Pickup requests: reads requests
backend/src/controllers/activity/activity.controller.js - User operations → User records: reads and updates
backend/src/controllers/user/user.controller.js - User operations → Cloudinary media: uploads avatar
backend/src/controllers/user/user.controller.js - User records → MongoDB: persists
- Food posts → MongoDB: persists
- Pickup requests → MongoDB: persists