An open API service indexing awesome lists of open source software.

https://github.com/soumya-rayast/vottingapp

Creating Votting App web application using Nodejs
https://github.com/soumya-rayast/vottingapp

dotenv expressjs javascript jwt-token mongodb nodejs

Last synced: 2 months ago
JSON representation

Creating Votting App web application using Nodejs

Awesome Lists containing this project

README

        

Voting Application

A functionality where user can give vote to the given set of candidates

Creating Module ,Routes

Voting App Functionality
1. user sign in / sign up
2. see the list of candidate
3. vote one of the candidate , after Voting , user cannot vote again
4. there is a route which shows the list of candidates and their live votes counts by their vote count
5. user data must contain their one unique government id proof named : aadhar card number
6. there should be one admin who can only maintain the table of candidates and he cannot able to vote at all
7. user can change the password
8. user can login only with aadhar number and password
9. Admin cannot vote

Routes

User Authentication :
/signup: POST - Create a new user account
/login: POST - Log in to an existing account. [aadhar card number + password]

Voting :
/candidates : GET - Get the list of candidates.
/vote/:candidate : POST - Vote for a specific candidate.

Vote Counts:
/vote/counts:GET - Get the list of candidates sorted by their vote counts.

User Profiles :
/profile :GET - Get the user's profile information
/profile/password: PUT - Change the user's password

Admin Candidate Management
/candidates: POST - Create new Member
/candidates:candidateId: PUT - Update an existing candidate
/candidates:candidateId: Delete a candidate from the list