Welcome a new era of voting unbiased.
- Firstly create a new folder and navigate to the folder.
- Type
git clone https://github.com/Krish2208/HashVote
in the terminal. - (Optional) Install conda on your system and form a new virtual enviornment for the HashVote by
conda create --name hash-vote
. Now enter the virtual enviornment by typingconda activate hash-vote
in the terminal open at the folder. - Install the required packages by typing
pip install -r requirements.txt
in the terminal. If pip is not found, install pip asconda install pip
. - Alternatively run
conda create --name hash-vote --file requirements.txt
to create an eviornment with the required packages. - Run
conda install google-auth google-auth-oauthlib
if facing difficulty with google auth related libraries. - Create
.env
file withSECRET_KEY="secret" GOOGLE_CLIENT_ID="YOUR GOOGLE CLIENT ID" REDIRECT_URI='http://localhost:5000/callback' MONGO_URI="YOUR MONGOBD CONNECTION LINK WITH SRV"
- To launch the app run
python main.py
.
- Set up the google auth or login services for your institution.
- Change the admin ids to required in main.py (line 49).
- You can now use the app. Admin login ids will be redirected to the admin page and voters to the voting page. Admin can set the voting time, candidates, posts, voters, etc. Which category of voters should vote candidates for which post can also be set. Admn can also edit the voter details, delete votets, etc.
- Voters can vote for their favourite candidates securely. Finally the admin can check the validity of the chain and publish the results.