How food-aid-connect/food-aid-connect works
Food Aid Connect connects food donors and charities through surplus-batch posting, discovery, and reservation. The principal workflow is donor batch submission with validated details, persistence, charity browsing, and atomic reservation; account registration, login, and reservation listings support that flow. The Vue client provides navigation and an available-batches view backed by the Flask API. The README documents PostgreSQL with a SQLite fallback and additional batch CRUD/API capabilities. Some backend routes and generated-client internals were not excerpted, so edges for those are limited to documented behavior.
Main entry points: app.py Flask routes and models · index.ts Page routing · TheWelcome.vue Welcome content · App.vue Vue application shell
Components 16
Web client
- Vue application shell
frontend/src/App.vue - Page routing
frontend/src/router/index.ts - Available batches view
frontend/src/views/AvailableBatchesView.vue - Home welcome view
frontend/src/views/HomeView.vue - Welcome content
frontend/src/components/TheWelcome.vue - Welcome item layout
frontend/src/components/WelcomeItem.vue - Welcome icons
frontend/src/components/icons - Generated API client
frontend/src/api/generated
Accounts
- Flask routes and models
backend/app.py - Account access
backend/app.py
Batch workflow
- Batch discovery
backend/app.py - Batch creation
backend/app.py - Batch details validation
backend/batch_details.py - Reservations and CRUD
backend/app.py
Persistence
- Application database
Other components
- Donors and charities
Connections 18
- Donors and charities → Vue application shell: uses
README.md - Vue application shell → Page routing: renders routes
frontend/src/App.vue - Page routing → Home welcome view: routes home
frontend/src/router/index.ts - Page routing → Available batches view: routes batches
frontend/src/router/index.ts - Home welcome view → Welcome content: renders
frontend/src/views/HomeView.vue - Welcome content → Welcome item layout: uses layout
frontend/src/components/TheWelcome.vue - Welcome content → Welcome icons: renders
frontend/src/components/TheWelcome.vue - Available batches view → Generated API client: requests batches
frontend/src/views/AvailableBatchesView.vue - Generated API client → Flask routes and models: calls API
README.md - Donors and charities → Flask routes and models: uses server pages
README.md - Flask routes and models → Account access: handles accounts
backend/app.py - Flask routes and models → Batch discovery: serves listings
backend/app.py - Flask routes and models → Batch creation: handles submissions
backend/app.py - Batch creation → Batch details validation: validates details
backend/app.py - Flask routes and models → Reservations and CRUD: handles reservation routes
backend/app.py - Flask routes and models → Application database: reads and writes
backend/app.py - Donors and charities → Batch creation: posts surplus
README.md - Donors and charities → Reservations and CRUD: reserves batches
README.md