This application is going to help the citizen to vote for their own leaders without putting in a lot of effort, such as displacement or waiting on a queu, they are going to vote digitally.
https://documenter.getpostman.com/view/7168800/SzS7PkcD?version=latest
Methods | Endpoints | Details |
---|---|---|
GET | / |
User should be able to register in the system |
POST | /api/v1/auth/signup |
User should be able to register in the system |
POST | /api/v1/auth/signin |
User should be able to log in the system |
PATCH | /api/v1/:partyid |
Admin should be able to edit the political party |
POST | /api/v1/parties |
Admin should be able to register a political party |
POST | /api/v1/petitions |
Admin, user or politician should be able to post a petition to challenge the results |
POST | /api/v1/offices |
Admin should be able to register a political party |
GET | /api/v1/parties/:partyid |
Admin, user or politician should be able to get a political party by id |
GET | /api/v1/offices/:officeid |
Admin, user or politician should be able to get a political office by id |
GET | /api/v1/parties |
Admin, user or politician should be able to get all registered political parties |
GET | /api/v1/offices |
Admin, user or politician should be able to get all registered political offices |
DELETE | /api/v1/parties/:partyid |
Admin should be able to delete a political party |
POST | /api/v1/vote |
Admin should be able to Vote |
DELETE | /api/v1/petitions/:petitionid |
Admin should be able to delete a petition |
DELETE | /api/v1/offices/:officeid |
Admin should be able to delete an office |
GET | /api/v1/office/:id/result |
Admin should be able to get the result by id |
GET | /api/v1/office/results |
Admin should be able to result |
-
Node.js
-
Postman
** Git clone https://github.com/Ally4/Your-Vote.git
in the terminal, then **
- Run
npm install
- Run
npm install nodemon
- Run
npm start
then check the endpoints in the postman - Application will run on http://localhost:9876
Run npm test
Regards to Andela
Regards to our TTLs
Regards to the teammates and their support
Andela Stackup cycle 4
© NENGO Ally as the developer (2020)