How abiram795/agriconnect-f2c works
AgriConnect is a farm-to-consumer marketplace with role-based workflows for farmers, consumers, delivery partners, hubs, and administrators. Users enter through the React app, manage produce listings or browse and order goods, while the backend provides marketplace, market-analysis, AI, logistics, and IVR capabilities. The supplied excerpts show frontend routes and selected HTTP requests, plus backend integrations with Supabase and market/AI services; many endpoint implementations were not shown, so those links are marked unverified or omitted.
Main entry points: main.py Backend API · FarmerDashboard.tsx Farmer dashboard · api.ts API URL config · ConsumerHome.tsx Consumer shopping
Components 21
Web application
- Browser app
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/main.tsx - Role routes
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/App.tsx - API URL config
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/config/api.ts
Marketplace workflows
- Farmer dashboard
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/FarmerDashboard.tsx - Crop listings
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/FarmerListings.tsx - Consumer shopping
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/ConsumerHome.tsx - Order form
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/OrderModal.tsx - Address form
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/AddressForm.tsx - IVR menu
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/FarmerIVRMenuModal.tsx
Backend services
- Backend API
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - Domain models
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/models.py - IVR service
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/ivr_service.py - Geo logistics
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/geo_logistics.py - Supabase store
Decision support
- Market data
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/market_service.py - Market analysis
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/MarketAnalysisModal.tsx - AI assistance
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/ai_service.py
Other components
- Farmer
- Consumer
- Agmarknet API
- Gemini API
Connections 26
- Browser app → Role routes: renders
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/main.tsx - Role routes → Farmer dashboard: routes to
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/App.tsx - Role routes → Consumer shopping: routes to
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/App.tsx - Farmer → Farmer dashboard: manages produce
- Consumer → Consumer shopping: browses goods
- Farmer dashboard → Crop listings: opens listings
- Farmer dashboard → Market analysis: opens analysis
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/FarmerDashboard.tsx - Farmer dashboard → IVR menu: opens IVR
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/FarmerDashboard.tsx - Consumer shopping → Order form: opens order
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/ConsumerHome.tsx - Order form → Address form: uses address
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/OrderModal.tsx - Farmer dashboard → API URL config: builds requests
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/FarmerDashboard.tsx - Consumer shopping → API URL config: builds requests
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/ConsumerHome.tsx - Crop listings → API URL config: builds requests
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/pages/FarmerListings.tsx - Market analysis → API URL config: builds requests
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/MarketAnalysisModal.tsx - IVR menu → API URL config: builds requests
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/frontend/src/components/FarmerIVRMenuModal.tsx - API URL config → Backend API: HTTP requests
- Backend API → Supabase store: reads and writes
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - IVR service → Supabase store: logs calls
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/ivr_service.py - Backend API → Domain models: uses models
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - Backend API → IVR service: delegates IVR
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - Backend API → Market data: delegates analysis
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - Backend API → AI assistance: delegates AI
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - Backend API → Geo logistics: delegates logistics
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/main.py - Market data → Agmarknet API: fetches prices
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/market_service.py - Market data → Gemini API: requests synthesis
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/market_service.py - AI assistance → Gemini API: analyzes images
Agri-connect-F2C-jules-agriconnect-init-9153873128297835644/backend/ai_service.py