How lalithkumar2006/national-digital-platform-for-research-policy-innovation-and-evidence-based-land-governance works
This is a national land-governance platform: role-based users enter a portal, authenticate, and use land, climate, district and GIS data, policy simulation, and security features. The React frontend communicates with a FastAPI backend; the backend excerpt shows SQLite-backed records, role-protected routes, document access checks, and audit recording. The map components render spatial features and expose selection/insight views. Some frontend-to-endpoint usage and backend subsystems are documented only at a broad level, so the graph avoids guessing individual calls beyond the evidence shown.
Main entry points: main.py FastAPI routes · App.jsx Role portals · api.js API client · AuthContext.jsx Session context
Components 15
User portal
- Role portals
National_Land_Governance_Frontend/src/App.jsx - Session context
National_Land_Governance_Frontend/src/context/AuthContext.jsx - API client
National_Land_Governance_Frontend/src/services/api.js - GIS interface
National_Land_Governance_Frontend/src/components/MapSystem.jsx - Spatial renderer
National_Land_Governance_Frontend/src/components/GISMap.jsx
Governance services
- FastAPI routes
National_Land_Governance_Backend/app/main.py - Accounts and roles
National_Land_Governance_Backend/app/main.py - Land and GIS data
National_Land_Governance_Backend/app/main.py - Policy simulation
National_Land_Governance_Backend/app/main.py
Security and audit
- Document access policy
National_Land_Governance_Backend/app/document_security.py - Audit event helpers
National_Land_Governance_Backend/app/security_audit.py - Hash-chain ledger
National_Land_Governance_Backend/app/blockchain.py
Persistent state
- Governance database
National_Land_Governance_Backend/data/land_governance.db - Ledger file
National_Land_Governance_Backend/blockchain_data/blockchain.json
Other components
- Portal user
Connections 15
- Portal user → Role portals: uses
National_Land_Governance_Frontend/src/App.jsx - Role portals → Session context: reads session
National_Land_Governance_Frontend/src/App.jsx - Session context → API client: calls auth
National_Land_Governance_Frontend/src/context/AuthContext.jsx - Role portals → API client: requests data
National_Land_Governance_Frontend/src/App.jsx - Role portals → GIS interface: presents maps
National_Land_Governance_Frontend/src/App.jsx - GIS interface → Spatial renderer: renders map
National_Land_Governance_Frontend/src/components/MapSystem.jsx - API client → FastAPI routes: HTTP requests
National_Land_Governance_Frontend/src/services/api.js - FastAPI routes → Accounts and roles: routes auth
National_Land_Governance_Backend/app/main.py - FastAPI routes → Land and GIS data: serves spatial data
National_Land_Governance_Backend/app/main.py - FastAPI routes → Policy simulation: runs simulation
National_Land_Governance_Backend/app/main.py - FastAPI routes → Document access policy: checks access
National_Land_Governance_Backend/app/main.py - FastAPI routes → Audit event helpers: records events
National_Land_Governance_Backend/app/main.py - Audit event helpers → Hash-chain ledger: appends blocks
National_Land_Governance_Backend/app/security_audit.py - FastAPI routes → Governance database: reads and writes
National_Land_Governance_Backend/app/main.py - Hash-chain ledger → Ledger file: loads and saves
National_Land_Governance_Backend/app/blockchain.py