A Flask-based web dashboard for exploring and validating Aadhaar-related records. Built for the UIDAI Hackathon.
- π Dashboard - India map with state-level drilldown, summary cards
- π Analysis - Anomaly detection, correlation warnings, distribution charts
- π― Prediction - ML-powered risk assessment with confidence scores
- π‘οΈ Policies - Data-driven recommendations for anomaly resolution
- β To-Do - Task management for verification workflows
# Navigate to project
cd aadhaar-dashboard
# Create virtual environment
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Linux/Mac
# Install dependencies
pip install -r requirements.txt
# Run the application
python run.pyOpen http://localhost:5000 in your browser.
aadhaar-dashboard/
βββ app/
β βββ __init__.py # App factory
β βββ config.py # Configuration
β βββ extensions.py # Flask extensions
β βββ models.py # Database models
β βββ routes/ # Blueprints
β β βββ dashboard.py
β β βββ analysis.py
β β βββ prediction.py
β β βββ policies.py
β β βββ todo.py
β βββ services/ # Business logic
β β βββ mock_data.py
β β βββ analytics_service.py
β βββ ml/ # ML models
β β βββ model.py
β βββ templates/ # Jinja templates
β βββ static/ # CSS, JS
βββ instance/ # SQLite database
βββ run.py
βββ requirements.txt
βββ README.md
| Endpoint | Method | Description |
|---|---|---|
/api/dashboard/summary |
GET | Dashboard statistics |
/api/dashboard/state?state=<name> |
GET | State-specific data |
/analysis/api/report |
GET | Full analysis report |
/prediction/api/predict |
POST | ML risk prediction |
/policies/api/recommendations |
GET | Policy recommendations |
/todo/api/tasks |
GET/POST | Task management |
/todo/api/tasks/<id> |
PATCH/DELETE | Update/delete task |
- Backend: Flask, Flask-SQLAlchemy
- Frontend: HTML, CSS, JavaScript
- Charts: Chart.js
- Maps: Leaflet.js + GeoJSON
- ML: scikit-learn (with rule-based fallback)
- Database: SQLite (PostgreSQL ready)
The dashboard features:
- Dark theme with Indian government color palette
- Interactive India map with state hover/click
- Real-time summary cards
- Responsive design
Built for UIDAI Hackathon - Prototype Demo