This is a small Dash application written in Python for visualising GP surgeries and their Primary Care Networks (PCNs) across the UK alongside the Index of Multiple Deprivation. The intention of this tool is to help identify and differentiate between GP surgeries in deprived areas and those in non-deprived areas to help tackle the inverse care law. The application is under an MIT license.
A version of the app has been deployed to a Heroku server here.
The main Dash app is situated in app.py. The mapping functions are situated in mapping.py The data is situated in /data
Development is done on the development branch, and this is merged with the master when doing a deployment to Heroku.
Set up a virtual environment
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
Run the app
python app.py
Set up a virtual environment
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
Run the app
heroku local
Note: Make sure you have a .env file or environment variable with you mapbox token as MAPBOX_ACCESS_TOKEN
- Dockerise
- Setup PostGIS backend rather than reading data in from .pkl
- Some frontend CRUD functionality with backend
- API for backend data
See here on how to contribute.