tobynott80 / find-my-mp-web

A website to gather information on a local MP (UK)

Home Page:https://fmmp.toby.uk.eu.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find My Mp

Website to gather information on a local MP

Find My MP

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)

Running with Docker

  1. Build the app from Dockerfile

    docker build app/ -t fmmp:latest

  2. 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

  3. Go to localhost

Running manually

  1. 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

  2. Install PIP requirements

    pip install -r app/requirements.txt

  3. Run app.py

    python3 app/app.py

Known Issues

  • Guardian API returns unrelated articles for some MPs.
  • Search Page can be slow to load - API limiting

About

A website to gather information on a local MP (UK)

https://fmmp.toby.uk.eu.org/


Languages

Language:Python 48.2%Language:HTML 30.5%Language:Dockerfile 12.7%Language:CSS 8.3%Language:Procfile 0.4%