How bhaveshsuryavanshi21/pashumitra works
PashuMitra is a livestock health and veterinary case-management application. Farmers submit animal health reports; the backend assesses risk and persists cases, while farmer and veterinary views support monitoring, treatment, vaccination, and outbreak response. The sampled frontend shows report-list and weather requests, and backend excerpts show report, update, and weather endpoints. Some page-to-backend actions and unsampled subsystem wiring cannot be confirmed from the excerpts, so those links are omitted or kept at the documented API level.
Main entry points: App.jsx App navigation · main.py Report API · HealthRecords.jsx Health records · OutbreakMap.jsx Outbreak map
Components 18
Web experience
- App navigation
frontend/src/App.jsx - Login
frontend/src/pages/Login.jsx - Report animal
frontend/src/pages/ReportAnimal.jsx - Farmer dashboard
frontend/src/pages/FarmerDashboard.jsx - Veterinary dashboard
frontend/src/pages/VetDashboard.jsx - Health records
frontend/src/pages/HealthRecords.jsx - Alerts
frontend/src/pages/Alerts.jsx - Outbreak map
frontend/src/pages/OutbreakMap.jsx
Case management
- PostgreSQL reports
Backend services
- Report API
backend/main.py - Risk calculation
backend/main.py - Case updates API
backend/main.py - Weather API
backend/main.py
External services
- Supabase client
frontend/src/supabaseClient.js - Supabase authentication
- OpenWeather
Other components
- Farmer
- Veterinarian
Connections 21
- Farmer → App navigation: uses
- Veterinarian → App navigation: uses
- App navigation → Login: renders
- App navigation → Report animal: renders
- App navigation → Farmer dashboard: renders
- App navigation → Veterinary dashboard: renders
- App navigation → Health records: renders
- App navigation → Alerts: renders
- App navigation → Outbreak map: renders
- App navigation → Supabase client: auth calls
- Supabase client → Supabase authentication: creates client
- Farmer dashboard → Report API: fetches reports
- Health records → Report API: fetches reports
- Health records → Case updates API: updates vaccination
- Alerts → Report API: fetches reports
- Outbreak map → Report API: fetches reports
- Outbreak map → Weather API: fetches weather
- Report API → Risk calculation: calculates risk
- Report API → PostgreSQL reports: reads and writes
- Case updates API → PostgreSQL reports: updates cases
- Weather API → OpenWeather: requests conditions