A political promise tracker for monitoring Government parties and their policies/manifestos.
Clone this git repository down to your system.
git clone https://github.com/2190594W/policy-tracker
policy-tracker folder; which contains the
Run the following command to install the correct dependencies:
pip install -r requirements.txt
Next, you can safely run the application with:
python manage.py makemigrations python manage.py migrate python populate_policy_tracker.py python manage.py runserver
Login via OAuth2 APIs is implemented through the social-auth-app-django module for Django that you have manually installed with Pip.
Currently, a basic template Home HTML file is used with little functionality. However, on the Home Page there are four links to allow a User to login with Google, Facebook, Twitter or GitHub. Standard Django login/registration is not yet implemented.
There you will be asked to login and/or pick which Google/Facebook/Twitter/GitHub account you want to use to grant permissions to Policy Tracker. And a brief description of the permissions will show next to the Policy Tracker logo. Policy Tracker will then receive details such as Firstname, Surname and email address to create a User object in the DB with.
You will then be redirected to the Home page with a logged in status.
Once logged in with one of the services, the user can then access the below link to view their current connected services, and choose to disconnect any that they may wish to: