Skip to content

Latest commit

Β 

History

History
92 lines (73 loc) Β· 2.75 KB

File metadata and controls

92 lines (73 loc) Β· 2.75 KB

UIDAI Aadhaar Data Intelligence Dashboard

A Flask-based web dashboard for exploring and validating Aadhaar-related records. Built for the UIDAI Hackathon.

Features

  • πŸ“Š 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

Quick Start

# 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.py

Open http://localhost:5000 in your browser.

Project Structure

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

API Endpoints

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

Tech Stack

  • 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)

Screenshot Preview

The dashboard features:

  • Dark theme with Indian government color palette
  • Interactive India map with state hover/click
  • Real-time summary cards
  • Responsive design

License

Built for UIDAI Hackathon - Prototype Demo