How vinayak2006tech/sih-moil works
MOIL ReserveIQ combines a mine-intelligence dashboard with an authenticated API, persistent mine data, and an ML service. The user workflow runs from selecting a mine and viewing reserve, production, shortfall, and recommendation insights to uploading operational data or synchronizing satellite observations. The README documents the REST and ML-service boundaries; source excerpts show ingestion parsing and storage, plus frontend context/API usage. Several feature pages and backend controllers are indexed but not excerpted, so their internal calls are not expanded.
Main entry points: api.ts API client · App.tsx App and navigation · main.py ML service API · ingestionController.ts Ingestion handlers
Components 21
Web application
- App and navigation
frontend/src/App.tsx - Mine selection
frontend/src/context/MineContext.tsx - User session
frontend/src/context/AuthContext.tsx - Mine insights
frontend/src/pages - Reserve mapping
frontend/src/pages/ReserveMapPage.tsx - Data ingestion
frontend/src/pages/IngestionPage.tsx - Source registry
frontend/src/pages/DataSourcesPage.tsx - API client
frontend/src/services/api.ts
Backend API
- REST endpoints
backend/src/routes - Ingestion handlers
backend/src/controllers/ingestionController.ts - Access control
backend/src/middleware/auth.ts - ML client
backend/src/services/mlClient.ts
Operational data
- Mine data store
backend/src/services/store.ts - CSV parser
backend/src/services/csvParser.ts - Public and operational sources
Intelligence services
- ML service API
ml-service/app/main.py - Reserve estimation
ml-service/app/services/reserve_estimation.py - Shortfall prediction
ml-service/app/services/shortfall_prediction.py - Prescriptive actions
ml-service/app/services/recommendation_engine.py - Satellite processing
ml-service/app/services/satellite_processor.py
Other components
- Mine user
Connections 22
- Mine user → App and navigation: uses
README.md - App and navigation → Mine selection: provides context
frontend/src/App.tsx - App and navigation → User session: provides session
frontend/src/App.tsx - App and navigation → Mine insights: routes to
frontend/src/App.tsx - App and navigation → Reserve mapping: routes to
frontend/src/App.tsx - Mine selection → API client: fetches mines
frontend/src/context/MineContext.tsx - User session → API client: requests auth
frontend/src/context/AuthContext.tsx - Mine insights → API client: requests insights
frontend/src/pages/IngestionPage.tsx - Reserve mapping → API client: requests reserve data
frontend/src/pages/ReserveMapPage.tsx - Data ingestion → API client: uploads data
frontend/src/pages/IngestionPage.tsx - API client → REST endpoints: calls REST API
README.md - REST endpoints → Ingestion handlers: routes uploads
backend/src/routes/ingestionRoutes.ts - REST endpoints → Access control: guards uploads
backend/src/routes/ingestionRoutes.ts - Ingestion handlers → CSV parser: parses files
backend/src/controllers/ingestionController.ts - Ingestion handlers → Mine data store: writes records
backend/src/controllers/ingestionController.ts - Ingestion handlers → ML client: uses ML client
backend/src/controllers/ingestionController.ts - ML client → ML service API: sends HTTP requests
README.md - ML service API → Reserve estimation: dispatches estimation
ml-service/app/main.py - ML service API → Shortfall prediction: dispatches prediction
ml-service/app/main.py - ML service API → Prescriptive actions: dispatches actions
ml-service/app/main.py - ML service API → Satellite processing: dispatches processing
ml-service/app/main.py - Public and operational sources → Ingestion handlers: supplies uploads