How rajath-r-prasad/agrinex works
AgriNex is a precision-farming web application for localized weather, crop and soil guidance, and irrigation decisions. Farmers enter through the routed frontend, authenticate or provide farm/location context, then use dashboard views for weather and agricultural recommendations. The backend exposes API routes and services; the sampled code confirms weather-based irrigation and crop-prediction paths. The README also describes zonal forecasts, soil NPK estimates, alerts, and ROI-oriented features. Several page implementations and route wiring were not sampled, so their internal data connections are left unspecified.
Main entry points: App.tsx App shell · api.ts API client · AuthContext.tsx User context · weather_service.py Weather and zones
Components 22
Farmer interface
- App shell
Agrinex-main/frontend/src/App.tsx - Sign-in
Agrinex-main/frontend/src/pages/Auth.tsx - Dashboard
Agrinex-main/frontend/src/pages/Dashboard.tsx - Weather view
Agrinex-main/frontend/src/pages/Weather.tsx - Soil view
Agrinex-main/frontend/src/pages/Soil.tsx - Financial view
Agrinex-main/frontend/src/pages/Financial.tsx - Network view
Agrinex-main/frontend/src/pages/Network.tsx - Profile view
Agrinex-main/frontend/src/pages/Profile.tsx
Identity and farms
- User context
Agrinex-main/frontend/src/contexts/AuthContext.tsx - API client
Agrinex-main/frontend/src/lib/api.ts - Supabase client
Agrinex-main/frontend/src/lib/supabase.ts - Profile API
Agrinex-main/backend/app/api/auth_routes.py - Farm API
Agrinex-main/backend/app/api/farm_routes.py
Farm intelligence
- Intelligence API
Agrinex-main/backend/app/main.py - Crop endpoint
Agrinex-main/backend/app/api/crop_routes.py - Crop predictions
Agrinex-main/backend/app/services/crop_service.py - Irrigation endpoint
Agrinex-main/backend/app/api/irrigation_routes.py - Irrigation guidance
Agrinex-main/backend/app/services/irrigation_service.py - Weather and zones
Agrinex-main/backend/app/services/weather_service.py
External services
- Weather providers
- Supabase
Other components
- Farmer
Connections 25
- Farmer → App shell: opens
- App shell → Sign-in: routes
- App shell → Dashboard: routes
- App shell → Weather view: routes
- App shell → Soil view: routes
- App shell → Financial view: routes
- App shell → Network view: routes
- App shell → Profile view: routes
- App shell → User context: provides context
- Sign-in → User context: signs in
- Sign-in → Supabase client: authenticates
- User context → Supabase client: uses
- User context → API client: syncs profile
- API client → Profile API: sends profile
- Weather view → API client: requests data
- Dashboard → API client: requests data
- Soil view → API client: requests data
- Intelligence API → Weather and zones: gets weather
- Intelligence API → Irrigation guidance: requests guidance
- Crop endpoint → Crop predictions: predicts crop
- Crop predictions → Weather and zones: gets conditions
- Irrigation guidance → Weather and zones: gets conditions
- Weather and zones → Weather providers: fetches forecasts
- Farm API → Farmer: serves farm data
- Supabase client → Supabase: authenticates