pawanpk87 / VoteIn

VoteIn (Election management software for the web)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VoteIn

VoteIn is an election management web application where voting will be handled by an admin who will add 
candidates for election. To vote for their favorite leaders, users need to register. Once signed up, 
the user will be able to cast a vote for their favorite leader.

Tech Stack

Java

JavaScript

Oracle

HTML5

Bootstrap

jQuery

Apache Tomcat

Project Details

https://buildcode.org/projects/completed/VoteIn

Admin

  • User(voters) Management
  • Candidate(Leaders) Management
  • Election Result

Voters

  • Registration
  • Voting
VoteIn application will be handled by one admin so it's important to understand the admin module before voting. 
Every user either voters or candidates will have to first register as voters, now the admin is the one who is 
responsible for adding the user to candidate list.

Example:
  Name: Rahul Gandhi
  Adhar number:...

now Rahul Gandhi wants to become the candidate for the election then admin will add Rahul Gandhi to the Candidate list.

Admin Privileges:-

  • User(voters) Management 1.) Show Users 2.) Remove Users 3.) Update Users
  • Candidate Management 1.) Add Candidate 2.) Update Candidate Details 3.) Remove the Candidate 4.) Show the Candidate
  • Election Result
To vote, voters must first register using their adhar number. Users (voters) will be redirected to the login page after 
registering, and once they log in, they will be directed to the voting page where all candidates in the same city as the 
user (voter) will be displayed, so now the user can vote for anyone.

Registration Module:-

    ____________________________
       
        registeration.html    
                              
        registration form     
                              
                              
        Register button       
    _____________________________
                |
                |
                |
       call the addUser() function
       of registeration.js
                |
                |
               \ /  
    _______________________________
                                  
        registeration.js      
                              
        addUser() Functions   
                              
    ______________________________
                |
                |
                |
       make post request to
       RegistrationControllerServlet
                |
                |
               \ / 
    ___________________________________________________
                                               
      RegistrationControllerServlet.java   
                                          
        1.) fetch the form data            
        2.) checks the user in             
            database                           
              a.) if a user is not present 
                  in database then         
                  register                 
              b.) if user is already       
                  present then response    
                  user is already          
                  registered               
                                           
    __________________________________________________
                        |
                        |
       RegistrationControllerServlet call
       registerUser() Functions of register the 
       user 
                        |
                        |
                       \ / 
             ___________________________
              
                RegistrationDAO.java  
                                      
                registerUser()        
                Functions register    
                user                 
             ___________________________     
                        |
                        |
       register user sends the response to the
       RegistrationControllerServlet and
       RegistrationControllerServlet forward 
       the request for the registration response.jsp 
       to generate response
                        |
                        |
                       \ / 
           finally registrationresponse.jsp
           send the response to the client

Contact

Pawan Kumar Mehta - arowpk@gmail.com

Project Link: https://github.com/pawanpk87/VoteIn

About

VoteIn (Election management software for the web)


Languages

Language:Java 58.6%Language:JavaScript 19.9%Language:CSS 12.9%Language:HTML 8.6%