Giter Site home page Giter Site logo

tobynott80 / find-my-mp-web Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 32 KB

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

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

Python 48.17% HTML 30.46% CSS 8.32% Dockerfile 12.67% Procfile 0.38%
flask parliamentary-data parliment python uk

find-my-mp-web's Introduction

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

find-my-mp-web's People

Contributors

moahmed0987 avatar tobynott80 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

moahmed0987

find-my-mp-web's Issues

Documentation correction

The current documentation inaccurately describes the purpose of the website as "A website to gather information on a local MP (UK&NI)". It is important to note that the long form name of the United Kingdom is "The United Kingdom of Great Britain and Northern Ireland", which includes Northern Ireland. Thus, a more accurate description would be either "A website to gather information on a local MP (UK)" or "A website to gather information on a local MP (GB&NI)".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.