Politico enables citizens to give their mandate to politicians running for different government offices while building trust in the process through transparency.
To view the UI Template click here
API endpoints are hosted Here
API endpoints Documentation are hosted Here
### Prerequisites
Ensure you have NodeJS installed on your computer by entering node -v
on your terminal. If you don’t have NodeJS installed go to the NodeJS Website, and follow the download instructions
Clone the app
git clone https://github.com/nraufu/politico.git
Install all the packages
npm install
Run the server
npm start
Run Test case
npm run test
Endpoint | Functionality |
---|---|
POST /auth/signup | create an account |
POST /auth/login | log into his account |
POST /auth/reset | reset password |
POST /parties/ | create a political party |
GET /parties/ | retrieve all political parties information |
GET /parties/:partyId | retrieve a specific political parties information |
PATCH /parties/:partyId | modify a specific political party |
DELETE /parties/:partyId | delete a specific political party |
POST /offices/ | create a government office |
GET /offices/ | retrieve all government offices information |
GET /offices/:officeId | retrieve a specific government office information |
PATCH /offices/:officeId | modify a specific government office info |
DELETE /offices/:officeId | delete a specific government office |
POST /offices/:officeId/register | register a politician for a specific office elections |
POST /votes/ | vote for a specific politician in a specific office |
GET /offices/:officeId/result | view election results for a specific office |
POST /petitions/ | create a petition |
GET /auth/profile | view profile information |