UK Population Tracker

UK Population Tracker GB

License Repo Size Last Commit

Python Flask MongoDB Pandas Polars Plotly HTML5 Faker Mimesis GeoPandas


πŸš€ Features

πŸ“Έ Gallery & Interface

Below are snapshots of the application in action, highlighting the Dark/Silver aesthetic and the interactive data layers.

1. Main Dashboard

Overview of the Stat cards and latest population snapshots. Dashboard Screenshot

2. Population Trends

Interactive bar charts showing percentage change across the 12 UK regions. Bar Chart Graph Main Overview Line Chart Overview Region Overview

3. Geospatial Analytics

Interactive choropleth maps generated via Geopandas and Plotly. UK Population Tracker Maps UK Population Tracker Maps UK Population Tracker Maps Interactve Map Interactive Map


πŸŽ₯ Project Demo

See the Interactive UK Population Tracker in action. This video demonstrates the seamless navigation between the dashboard, regional trends, and the interactive Plotly maps.

Note: If the video does not load, you can find the raw file here.


βš™οΈ Installation & Setup

Follow these steps to get the environment running locally using Git Bash:

1. Clone the Repository

git clone [https://github.com/reory/uk-population-tracker.git](https://github.com/reory/uk-population-tracker.git)
cd uk-population-tracker

2. Set Up a Virtual Environment

python -m venv venv
source venv/Scripts/activate

3. Data Dependencies

4. Install Dependencies

pip install -r requirements.txt

5. Data Initialization (Faker & Mimesis)

Run the ingestion script to generate the synthetic dataset, inject noise, and populate your MongoDB instance:

python -m processing.mongo_client

6. Generate Visual Assets

Pre-render the static maps before launching the dashboard:

python -m processing.map_regions

7. Run the Application

python run.py

The Flask dashboard will be live at http://127.0.0.1:5000/


πŸ§ͺ Testing

This project uses pytest and mongomock. To run the full suite: pytest

To skip live database checks: pytest -m "not live"


πŸ› οΈ Tech Stack & Data Engineering


πŸ“Š Key Features


πŸ—ΊοΈ V2 Roadmap (The Drill-Down)

The next phase of the project focuses on Granular Urban Analytics:


πŸ“ Notes


πŸ™ Acknowledgments


Built by Roy Peters contact details 😁