Update README.md
Browse files
README.md
CHANGED
|
@@ -8,51 +8,105 @@ short_description: A full-featured Flask dashboard for the Big Data & Data Scie
|
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
-
# DTE Punjab — Training Dashboard v2
|
| 12 |
|
| 13 |
-
A full-featured Flask dashboard for the Big Data & Data Science
|
| 14 |
|
| 15 |
-
##
|
|
|
|
| 16 |
|
| 17 |
-
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
-
|
| 32 |
-
- Canvas map redraws on section re-visit
|
| 33 |
|
| 34 |
-
## Setup
|
| 35 |
|
|
|
|
| 36 |
```bash
|
|
|
|
| 37 |
cd dte_dashboard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
python app.py
|
| 40 |
```
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
dte_dashboard/
|
| 48 |
-
├── app.py # Flask backend
|
| 49 |
-
├── requirements.txt
|
| 50 |
-
├── .env #
|
| 51 |
├── data/
|
| 52 |
-
│ └── DTE_all_Batch.xlsx
|
| 53 |
├── templates/
|
| 54 |
-
│ └── index.html
|
| 55 |
└── static/
|
| 56 |
-
├── css/style.css
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
+
# 🎓 DTE Punjab — Training Dashboard v2
|
| 12 |
|
| 13 |
+
A comprehensive, full-featured Flask-based analytical dashboard designed for the Big Data & Data Science Training Programme conducted for the Department of Technical Education and Industrial Training (DTE), Government of Punjab.
|
| 14 |
|
| 15 |
+
## 🌐 Live Demo
|
| 16 |
+
[Experience the Dashboard Live](https://princelv-dte.hf.space/)
|
| 17 |
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
<img width="1910" height="962" alt="image" src="https://github.com/user-attachments/assets/4c9a6b22-f98f-4022-aef7-03c96a98b970" />
|
| 21 |
+
|
| 22 |
+
## ✨ Key Features
|
| 23 |
+
|
| 24 |
+
* **📊 Comprehensive Analytics:** Real-time KPI cards, batch overview strips, and multi-dimensional mini-charts (gender/batch/branch splits).
|
| 25 |
+
* **📈 Advanced Visualizations:** Detailed district bar charts, branch/gender doughnuts, designation breakdowns, and batch-gender grouped metrics using Chart.js.
|
| 26 |
+
* **💡 Smart Insights Engine:** Auto-generated analytical insight cards with animated progress bars evaluating demographic and geographic distributions.
|
| 27 |
+
* **🗺️ Interactive Geospatial Mapping:** Clickable bubble map plotting participant density across Punjab districts. Features an integrated Google Maps fallback and click-to-open functionality for specific polytechnic colleges.
|
| 28 |
+
* **🗄️ Dynamic Participant Data:** Searchable, filterable (by batch, designation, district), and fully sortable paginated data table.
|
| 29 |
+
* **📥 Export Capabilities:** One-click CSV generation for both complete datasets and actively filtered views.
|
| 30 |
+
* **🌓 Modern UI/UX:** Fully responsive, premium interface with a persistent Dark / Light mode toggle powered by vanilla CSS variables and `localStorage`.
|
| 31 |
+
* **🖼️ Media Gallery:** Built-in lightbox gallery showcasing batch-wise group photographs.
|
| 32 |
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## 🛠️ Technology Stack
|
| 36 |
|
| 37 |
+
* **Backend:** Python 3, Flask, Pandas, OpenPyXL, python-dotenv
|
| 38 |
+
* **Frontend:** HTML5, CSS3, Vanilla JavaScript (ES6+), Chart.js
|
| 39 |
+
* **APIs & Integrations:** Google Maps JavaScript API (Advanced Markers)
|
| 40 |
+
|
| 41 |
+
---
|
|
|
|
| 42 |
|
| 43 |
+
## ⚙️ Installation & Setup
|
| 44 |
|
| 45 |
+
**1. Clone the repository:**
|
| 46 |
```bash
|
| 47 |
+
git clone https://github.com/lovnishverma/dte_dashboard.git
|
| 48 |
cd dte_dashboard
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
**2. Create and activate a virtual environment (Recommended):**
|
| 52 |
+
```bash
|
| 53 |
+
python -m venv venv
|
| 54 |
+
source venv/bin/activate # On Windows use: venv\Scripts\activate
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
**3. Install the required dependencies:**
|
| 58 |
+
```bash
|
| 59 |
pip install -r requirements.txt
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
**4. Configure Environment Variables:**
|
| 63 |
+
Ensure you have a `.env` file in the root directory containing your Google Maps API key (and optionally the Flask environment):
|
| 64 |
+
```env
|
| 65 |
+
GOOGLE_MAPS_API_KEY=your_actual_api_key_here
|
| 66 |
+
FLASK_ENV=development
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
**5. Run the application:**
|
| 70 |
+
```bash
|
| 71 |
python app.py
|
| 72 |
```
|
| 73 |
+
*The dashboard will be available at `http://localhost:5000`*
|
| 74 |
+
|
| 75 |
+
---
|
| 76 |
|
| 77 |
+
## 🔧 Updates & Bug Fixes (v2)
|
| 78 |
|
| 79 |
+
* Fixed `gm_authFailure` crash on `AdvancedMarkerElement` with a robust authentication guard.
|
| 80 |
+
* Resolved designation normalization edge cases (e.g., standardizing "SR. LECTURER" vs "Senior Lecturer").
|
| 81 |
+
* Pagination now correctly displays windowed page numbers, preventing overflow for large datasets.
|
| 82 |
+
* Optimized count-up animations to correctly target the first text node.
|
| 83 |
+
* Charts and Canvas maps now seamlessly redraw on theme toggles and section re-visits.
|
| 84 |
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## 📁 Project Structure
|
| 88 |
+
|
| 89 |
+
```text
|
| 90 |
dte_dashboard/
|
| 91 |
+
├── app.py # Core Flask backend & API routing
|
| 92 |
+
├── requirements.txt # Python dependencies
|
| 93 |
+
├── .env # Environment variables (API Keys)
|
| 94 |
├── data/
|
| 95 |
+
│ └── DTE_all_Batch.xlsx # Source dataset
|
| 96 |
├── templates/
|
| 97 |
+
│ └── index.html # Main dashboard UI
|
| 98 |
└── static/
|
| 99 |
+
├── css/style.css # Custom styling (Dark/Light themes)
|
| 100 |
+
├── js/main.js # Frontend logic & Chart integrations
|
| 101 |
+
└── images/ # Batch group photographs
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
## ©️ Copyright & Credits
|
| 107 |
+
|
| 108 |
+
**Copyright © NIELIT Ropar**
|
| 109 |
+
|
| 110 |
+
This dashboard was developed as part of a specialized training initiative under FutureSkills PRIME.
|
| 111 |
+
|
| 112 |
+
Created by **Lovnish Verma** (Project Engineer) and **Ravi Kant** (Project Assistant), NIELIT ROPAR, under the expert guidance of **Dr. Sarwan Singh** and **Anita Budhiraja Mam**.
|