How sebas-ap/agrovia works
AGROVÍA supports plot-specific agricultural decision-making: a farmer records a parcel, then reviews environmental indicators, crop-rotation strategies, economic scenarios, and VÍA explanations. The backend owns application decision logic and persistence; the Python Model supplies environmental data, crop evaluation, and predictions. The mobile UI has parcel, intelligence, and market modules, but the README describes it as a prototype not yet fully connected to the backend; sampled UI service code does show limited backend requests. Several backend and UI internals were not sampled, so those relationships are shown only where documented.
Main entry points: plots.ts Plot workflows · App.tsx App shell · service.py Evaluation service · index.ts UI services
Components 23
Mobile experience
- App shell
AppMovil/app-src/src/App.tsx - My Plot
AppMovil/app-src/src/screens/Parcel.tsx - Intelligence
AppMovil/app-src/src/screens/Intel.tsx - Market
AppMovil/app-src/src/screens/Market.tsx - UI services
AppMovil/app-src/src/services/index.ts - API client
AppMovil/app-src/src/services/backend.ts
Backend decisions
- Express API
Backend/src/app.ts - Plot workflows
Backend/src/routes/plots.ts - Indicators
Backend/src/engines/indicators/index.ts - Rotation strategies
Backend/src/engines/rotation/index.ts - Economics
Backend/src/engines/economics/index.ts - VÍA assistant
Backend/src/engines/via/index.ts - Data providers
Backend/src/providers/runtime.ts - Model integration
Backend/src/integration/modeloClient.ts
Environmental model
- Model API
Modelo/agrovia_api/main.py - Evaluation service
Modelo/agrovia_api/service.py - NASA POWER
Modelo/agrovia_api/clients/nasa_power.py - MODIS NDVI
Modelo/agrovia_api/clients/ornl_modis.py
Application data
- Firestore
Backend/src/firestore/admin.ts
Other components
- Farmer
- NASA POWER service
- ORNL DAAC
- SIAP prices
Connections 22
- Farmer → App shell: uses
README.md - App shell → My Plot: renders
AppMovil/app-src/src/App.tsx - App shell → Intelligence: renders
AppMovil/app-src/src/App.tsx - App shell → Market: renders
AppMovil/app-src/src/App.tsx - My Plot → UI services: requests data
AppMovil/app-src/src/screens/Parcel.tsx - Market → UI services: requests data
AppMovil/app-src/src/screens/Market.tsx - UI services → API client: calls
AppMovil/app-src/src/services/index.ts - API client → Express API: HTTP requests
- Express API → Plot workflows: mounts
Backend/src/app.ts - Plot workflows → Indicators: computes
README.md - Plot workflows → Rotation strategies: generates
README.md - Plot workflows → Economics: recalculates
README.md - Plot workflows → VÍA assistant: answers through
README.md - Plot workflows → Firestore: persists
README.md - Data providers → Model integration: uses when live
README.md - Model integration → Model API: HTTP integration
README.md - Model API → Evaluation service: delegates
Modelo/agrovia_api/main.py - Evaluation service → NASA POWER: fetches climate
Modelo/agrovia_api/service.py - Evaluation service → MODIS NDVI: fetches NDVI
Modelo/agrovia_api/service.py - NASA POWER → NASA POWER service: queries
Modelo/agrovia_api/clients/nasa_power.py - MODIS NDVI → ORNL DAAC: queries
Modelo/agrovia_api/clients/ornl_modis.py - Evaluation service → SIAP prices: loads prices
README.md