How varshini-balaji2021/plate2plate works
Plate2Plate is a food-surplus and donation dashboard. A browser-loaded dashboard requests database connection status, summary metrics, surplus listings, orders, and donations from the FastAPI backend; the backend queries PostgreSQL and returns data for charts and tables. The backend also serves the frontend files. The README is empty, and the available source excerpts do not establish write or transaction workflows, so the map focuses on the evidenced read/reporting path.
Main entry points: script.js Web dashboard · app.py FastAPI backend
Components 6
Dashboard
- Web dashboard
Plate2Plate_Corrected/script.js
API service
- FastAPI backend
Plate2Plate_Corrected/backend/app.py - Dashboard reporting
Plate2Plate_Corrected/backend/app.py - Food and transaction listings
Plate2Plate_Corrected/backend/app.py
Data
- Supabase PostgreSQL
Other components
- Dashboard user
Connections 8
- Dashboard user → Web dashboard: views
- FastAPI backend → Web dashboard: serves files
Plate2Plate_Corrected/backend/app.py - Web dashboard → FastAPI backend: fetches API
Plate2Plate_Corrected/script.js - FastAPI backend → Supabase PostgreSQL: connects and queries
Plate2Plate_Corrected/backend/app.py - Dashboard reporting → Supabase PostgreSQL: queries metrics
Plate2Plate_Corrected/backend/app.py - Food and transaction listings → Supabase PostgreSQL: queries listings
Plate2Plate_Corrected/backend/app.py - Dashboard reporting → Web dashboard: returns chart data
Plate2Plate_Corrected/script.js - Food and transaction listings → Web dashboard: returns rows
Plate2Plate_Corrected/script.js