How libinworkspacepromatas/agrionecombined works
AgriOne is a vineyard digital-twin platform: growers and bidders use Angular or the companion React Native app to access farm monitoring, agronomy guidance, water and market tools. Both clients share a FastAPI backend, which exposes domain APIs and coordinates persistence, satellite analysis, weather, and decision services. The mobile excerpts show authentication and farm-data loading; the web route excerpt documents the major browser capabilities. Some backend and frontend domain implementations were not sampled, so their internal links are omitted where evidence is absent.
Main entry points: app.routes.ts Web application · App.tsx Mobile application · satellite_insights.py Satellite insights · main.py FastAPI service
Components 26
Web client
- Web application
web/agritechplatform/src/app/app.routes.ts - Farm dashboard
web/agritechplatform/src/app/modules/dashboard/dashboard.component.ts - Water irrigation
web/agritechplatform/src/app/modules/water-irrigation/water-irrigation.component.ts - Profit risk
web/agritechplatform/src/app/modules/profit-risk/profit-risk.component.ts - Growing opportunities
web/agritechplatform/src/app/modules/growing-opportunities/growing-opportunities.component.ts - Grower GPT
web/agritechplatform/src/app/modules/grower-gpt/grower-gpt.component.ts - Auctions
web/agritechplatform/src/app/modules/auctions/auctions.component.ts - Equipment rental
web/agritechplatform/src/app/modules/rental/rental.component.ts
Mobile client
- Mobile application
mobile/App.tsx - Mobile sign-in
mobile/src/screens/LoginScreen.tsx - Mobile farm tabs
mobile/src/navigation/BottomTabs.tsx - Farm data state
mobile/src/context/FarmContext.tsx - Mobile auth client
mobile/src/api/authService.ts
Backend APIs
- FastAPI service
web/backend/app/main.py - Farm and satellite API
web/backend/app/api/routes.py - Domain API routes
web/backend/app/api
Farm intelligence
- Satellite insights
web/backend/app/services/satellite_insights.py - Earth Engine client
web/backend/app/services/earth_engine.py - Irrigation decisions
web/backend/app/services/decision_engine.py - Weather ingestion
web/backend/app/services/weather_ingest.py - Satellite scheduler
web/backend/app/services/satellite_scheduler.py
Platform services
- Platform database
web/backend/app/db/models.py
Other components
- Grower
- Bidder
- Google Earth Engine
- Mobile user
Connections 29
- Grower → Web application: uses
- Bidder → Web application: uses
web/agritechplatform/src/app/app.routes.ts - Web application → Farm dashboard: routes to
web/agritechplatform/src/app/app.routes.ts - Web application → Water irrigation: routes to
web/agritechplatform/src/app/app.routes.ts - Web application → Profit risk: routes to
web/agritechplatform/src/app/app.routes.ts - Web application → Growing opportunities: routes to
web/agritechplatform/src/app/app.routes.ts - Web application → Grower GPT: routes to
web/agritechplatform/src/app/app.routes.ts - Web application → Auctions: routes to
web/agritechplatform/src/app/app.routes.ts - Web application → Equipment rental: routes to
web/agritechplatform/src/app/app.routes.ts - Mobile user → Mobile application: uses
- Mobile application → Mobile sign-in: shows when signed out
mobile/App.tsx - Mobile application → Mobile farm tabs: shows when signed in
mobile/App.tsx - Mobile sign-in → Mobile auth client: authenticates with
mobile/src/api/authService.ts - Mobile application → Farm data state: loads farm state
mobile/App.tsx - Farm data state → Mobile auth client: fetches farm data
mobile/src/context/FarmContext.tsx - Mobile application → FastAPI service: shares backend
- Web application → FastAPI service: uses central backend
- FastAPI service → Farm and satellite API: registers router
web/backend/app/main.py - FastAPI service → Domain API routes: registers routes
web/backend/app/main.py - Farm and satellite API → Satellite insights: requests insights
web/backend/app/api/routes.py - Satellite insights → Earth Engine client: computes imagery
web/backend/app/services/satellite_insights.py - Earth Engine client → Google Earth Engine: queries imagery
- Satellite insights → Platform database: reads and writes cache
web/backend/app/services/satellite_insights.py - Satellite insights → Irrigation decisions: uses decision service
- Irrigation decisions → Weather ingestion: uses weather data
web/backend/app/services/decision_engine.py - Irrigation decisions → Platform database: reads and saves decisions
web/backend/app/services/decision_engine.py - Satellite scheduler → Satellite insights: refreshes insights
web/backend/app/services/satellite_scheduler.py - Satellite scheduler → Earth Engine client: uses imagery client
web/backend/app/services/satellite_scheduler.py - Satellite scheduler → Platform database: uses database
web/backend/app/services/satellite_scheduler.py