Work In Progress
A simple flask app to wrap the parliament.uk API to show an MP's details based off a postcode. Also finds related Guardian articles (work in progress)
-
Build the app from Dockerfile
docker build app/ -t fmmp:latest
-
Run the app, supplying with The Guardian API key, exposing port 80
docker run -p 80:80 -e GUARDIAN_KEY={key} -d fmmp:latest
Note: Guardian API key not necessary for full functionality
-
Go to localhost
-
Set Guardian API key as environment variable (Optional)
Linux:
$Export GUARDIAN_KEY="{key}"
Powershell:
$Env:GUARDIAN_KEY = "{key}"
Note: Guardian API key not necessary for full functionality
-
Install PIP requirements
pip install -r app/requirements.txt
-
Run app.py
python3 app/app.py
- Guardian API returns unrelated articles for some MPs.
- Search Page can be slow to load - API limiting