How manish01101/resqplate works
ResQPlate connects food donors with verified NGOs and volunteers: users register and verify, donors post geolocated surplus food, nearby organizations discover and request it, donors approve requests, and pickup is tracked through handoff and completion. Matching ranks volunteers by distance, urgency, and reliability; scheduled expiry keeps listings current. The map, chat, ratings, notifications, assistant, and admin controls are additional product capabilities. Edges reflect the README and shown imports/calls; several frontend pages and backend routes were not sampled, so their internal wiring is not inferred.
Main entry points: App.jsx App routing · index.js HTTP server · api.js API client · donations.js Donation management
Components 34
Web client
- App routing
frontend/src/App.jsx - Auth context
frontend/src/context/AuthContext.jsx - API client
frontend/src/utils/api.js - Role dashboards
frontend/src/pages/DashboardPage.jsx - Donation posting
frontend/src/pages/DonatePage.jsx - Food discovery map
frontend/src/pages/FindFoodPage.jsx - Claims management
frontend/src/pages/MyClaimsPage.jsx - Admin dashboard
frontend/src/pages/AdminPage.jsx - ResQBot assistant
frontend/src/components/ResQBot.jsx - Live pickup map
frontend/src/components/ActivePickupMap.jsx - Route rendering
frontend/src/components/RoutingMachine.jsx
Identity and access
- Authentication routes
backend/routes/auth.js - JWT authorization
backend/middleware/auth.js - User and reliability
backend/models/user.js
Food rescue workflow
- Donation management
backend/routes/donations.js - Donation records
backend/models/donation.js - Volunteer matching
backend/utils/algorithms.js - Claim and handoff
backend/routes/claims.js - Claim records
backend/models/claim.js
Live services
- Claim chat
backend/routes/chat.js - Chat messages
backend/models/chatMessage.js - Ratings
backend/routes/ratings.js - Rating records
backend/models/rating.js - Notification inbox
backend/routes/notifications.js - Notification records
backend/models/notification.js
Platform operations
- HTTP server
backend/index.js - Donation expiry
backend/jobs/donationJobs.js - Admin controls
backend/routes/admin.js
Other components
- Donor
- NGO / volunteer
- Admin
- Web browser
- OSRM routing
- Groq API
Connections 45
- Donor → App routing: uses
- NGO / volunteer → App routing: uses
- Admin → App routing: uses
- Web browser → App routing: loads
- App routing → Auth context: provides
frontend/src/App.jsx - App routing → Role dashboards: routes to
frontend/src/App.jsx - App routing → Donation posting: routes to
frontend/src/App.jsx - App routing → Food discovery map: routes to
frontend/src/App.jsx - App routing → Claims management: routes to
frontend/src/App.jsx - App routing → Admin dashboard: routes to
frontend/src/App.jsx - App routing → ResQBot assistant: renders
frontend/src/App.jsx - Auth context → API client: calls
- Donation posting → API client: calls
frontend/src/pages/DonatePage.jsx - Admin dashboard → API client: calls
frontend/src/pages/AdminPage.jsx - Role dashboards → API client: calls
- Food discovery map → API client: calls
- Claims management → API client: calls
- API client → HTTP server: HTTP requests
- HTTP server → Authentication routes: mounts
backend/index.js - HTTP server → Donation management: mounts
backend/index.js - HTTP server → Claim and handoff: mounts
backend/index.js - HTTP server → Admin controls: mounts
backend/index.js - HTTP server → Claim chat: mounts
backend/index.js - HTTP server → Ratings: mounts
backend/index.js - HTTP server → Notification inbox: mounts
backend/index.js - Authentication routes → User and reliability: reads/writes
backend/routes/auth.js - JWT authorization → User and reliability: loads user
backend/middleware/auth.js - Donation management → JWT authorization: protects routes
backend/routes/donations.js - Claim and handoff → JWT authorization: protects routes
backend/routes/claims.js - Donation management → Donation records: reads/writes
backend/routes/donations.js - Donation management → User and reliability: queries volunteers
backend/routes/donations.js - Donation management → Volunteer matching: ranks volunteers
backend/routes/donations.js - Donation management → Claim and handoff: notifies matches
- Claim and handoff → Claim records: creates/updates
backend/routes/claims.js - Claim and handoff → Donation records: updates status
backend/routes/claims.js - Claim and handoff → User and reliability: updates reliability
backend/routes/claims.js - Donation expiry → Donation records: expires listings
backend/jobs/donationJobs.js - Admin controls → User and reliability: manages accounts
- Admin controls → Donation records: moderates listings
- Claim chat → Chat messages: stores messages
- Ratings → Rating records: stores ratings
- Notification inbox → Notification records: reads inbox
- Live pickup map → Route rendering: renders route
- Route rendering → OSRM routing: requests route
- ResQBot assistant → Groq API: asks assistant