How zaheerk19n/argovision-ai works
AgroVision AI is a crop-health platform: a farmer signs in, uploads a leaf image, receives a disease classification, and can review farm status, managed crops, alerts, and prior scans. The React client calls an Express API, which coordinates persistence and the documented ML and Gemini integrations. The frontend routing and several calls, plus the Express-to-ML request, are visible in excerpts; other service links and unsampled feature endpoints are based on the root README, not inspected implementation.
Main entry points: server.mjs Express API · App.jsx App routing · Signup.jsx Signup flow · Predict.jsx Leaf upload
Components 20
Web client
- App routing
crop-frontend/src/App.jsx - Signup flow
crop-frontend/src/pages/Signup.jsx - Login form
crop-frontend/src/components/Login.jsx - Navigation
crop-frontend/src/components/Navbar.jsx - Leaf upload
crop-frontend/src/pages/Predict.jsx - Advisor chat UI
crop-frontend/src/components/Chatbot.jsx - Farm dashboard
crop-frontend/src/pages/Dashboard.jsx - Disease library
crop-frontend/src/pages/Diseases.jsx - Scan history view
crop-frontend/src/pages/History.jsx - Managed crops view
crop-frontend/src/pages/UserCrop.jsx - Notifications view
crop-frontend/src/pages/Notification.jsx - Account details
crop-frontend/src/pages/Details.jsx
API and identity
- Express API
server/src/server.mjs - JWT middleware
server/src/middleware/auth.mjs - User model
server/src/models/User.js - MongoDB records
Diagnosis and advice
- ML inference service
ml-service/app/main.py - Gemini AI
Farm records
- Crop reference data
crop-frontend/src/data/cropslist.js
Other components
- Farmer
Connections 26
- Farmer → App routing: uses
README.md - App routing → Navigation: renders
crop-frontend/src/App.jsx - App routing → Signup flow: routes to
crop-frontend/src/App.jsx - App routing → Leaf upload: routes to
crop-frontend/src/App.jsx - App routing → Farm dashboard: routes to
crop-frontend/src/App.jsx - App routing → Disease library: routes to
crop-frontend/src/App.jsx - App routing → Scan history view: routes to
crop-frontend/src/App.jsx - App routing → Managed crops view: routes to
crop-frontend/src/App.jsx - App routing → Notifications view: routes to
crop-frontend/src/App.jsx - App routing → Account details: routes to
crop-frontend/src/App.jsx - Signup flow → Login form: renders
crop-frontend/src/pages/Signup.jsx - Signup flow → Express API: submits credentials
crop-frontend/src/pages/Signup.jsx - Leaf upload → Express API: posts image
crop-frontend/src/pages/Predict.jsx - Leaf upload → Advisor chat UI: renders
crop-frontend/src/pages/Predict.jsx - Managed crops view → Express API: manages crops
crop-frontend/src/pages/UserCrop.jsx - Express API → JWT middleware: authenticates requests
server/src/server.mjs - Express API → User model: queries users
server/src/server.mjs - Express API → MongoDB records: persists records
README.md - Express API → ML inference service: forwards image
server/src/server.mjs - ML inference service → Express API: returns diagnosis
README.md - Express API → Gemini AI: requests advice
README.md - Farm dashboard → Express API: requests metrics
README.md - Scan history view → Express API: requests scan log
README.md - Disease library → Express API: requests catalog
README.md - Notifications view → Express API: requests alerts
README.md - Managed crops view → Crop reference data: uses crop data