-
Notifications
You must be signed in to change notification settings - Fork 0
/
planning.txt
42 lines (32 loc) · 1.5 KB
/
planning.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Voting Application
What ??
A functionality void user can give vote to the given set of candidates.
Models?
Routes?
Voting app functionality:
1. User sign in / sign up
2. See the list of candidate(BJP /TMC/...)
3. vote one of the candidate, after voting ,user can not vote again.
4. there is a route which shows the list of the candidates and their live votes count sorted by their vote count . (which party in on the top)
5. user data must contain their one unique government ID proof named: aadhaar card number
6. there should be one admin who can only maintain the table of candidates and he cannot able to vote to all.
7. can change their password
8. user can login only with their aadhaar card number and password.
9. admin can't vote at all
----------------------------------------------------------------
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/:candidateId: POST - Vote for a specific candidate.
Vote Counts:
/vote/counts: GET - Get the list of candidates sorted by their vote counts.
User Profile:
/profile: GET - Get the user's profile information.
/profile/password: PUT - Change the user's password.
Admin Candidate Management:
/candidates: POST - Create a new candidate.
/candidates/:candidateId: PUT - Update an existing candidate.
/candidates/:candidateId: DELETE - Delete a candidate from the list.