https://lawrencemuema.github.io/politico_p/ui
an immersive online voting platform andela pre bootcamp challenge
Method | Endpoint | Usage |
---|---|---|
PARTY | . | . |
POST | /api/v1/party |
Create a party. |
GET | /api/v1/party |
Get all parties. |
GET | /api/v1/party/<p_id> |
Get specific party. |
PUT | /api/v1/party/<p_id> |
edit a party. |
DELETE | /api/v1/party/<p_id> |
Delete a specific party. |
. | . | . |
OFFICE | ------ | |
POST | /api/v1/office |
Create a office. |
GET | /api/v1/office |
Get all offices. |
GET | /api/v1/office/<o_id> |
Get specific office. |
. | . | . |
USERS | ------ | |
POST | /api/v1/signup |
register user. |
GET | /api/v1/signin |
user login. |
. | . | . |
CANDIDATES | ------ | |
POST | /api/v1/apply |
Apply for office. |
GET | /api/v1/apply |
view all candidates. |
GET | /api/v1/apply/<c_id> |
view specific candidates by their id. |
. | . | . |
VOTES | ------ | |
POST | /api/v1/vote |
proces voting. |
GET | /api/v1/vote |
get all votes cast. |
GET | /api/v1/vote/<v_id > |
get all votes cast by specific voter. |
GET | /api/v1/vote/<candidate_name > |
get all votes cast to a specific candidate. |
Clone the Github repository and use pip to install the dependencies
git clone https://github.com/lawrencemuema/politico_p.git
cd/politico_p
venv\scripts\activate
pip install -r requirements.txt