Politico is a platform which both the politicians and citizens can use. It enables citizens give their mandate to politicians running for different government offices while building trust in the process through transparency. A user can register and log in to the platform, view parties and the various political offices that have been created by the administrator.
- Clone this repository
https://github.com/exdus/Politico
- Navigate to the cloned repository
- Python3
- Flask
- Postman
- Create a virtual environment
virtualenv -p python3 venv
- Activate the virtual environment
source venv/bin/activate
- Switch to 'develop' branch
git checkout develop
- Install requirements
pip install -r requirements.txt
- Run the application
python3 run.py
- Test the application
python3 -m pytest
Endpoint | Functionality |
---|---|
/api/v1/party | POST Create a party record |
/api/v1/party/<party_id> | GET Fetch a specific party record |
/api/v1/party/<party_id> | PATCH Edit a given party record |
/api/v1/party/<party_id> | DELETE delete a specific party record |
/api/v1/parties | GET Fetch all party records |
/api/v1/office | POST Create a political office |
/api/v1/office/<office_id> | GET get specific office details |
/api/v1/ offices | GET View all political offices |
/api/v1/signup | POST sign up for an account |
/api/v1/signin | GET sign in to the api |
- Bunei Kelvin
- #nbo-37
- Andela community