BlockVote is a blockchain based election system which lets voters elect candidate in an election.
Make Sure that you've Truffle and Ganache installed
- Open Ganache and Create new workspace
- Name the workspace & add "truffle-config.js" file to add project
- Make changes according to your needs and save workspace
- Compile contract sources file:
truffle compile - Testing :
truffle test .\test\election.js - Migrating :
truffle migrate
- Navigate to the folder:
cd BlockVote - Install dependencies:
npm install - Run server:
npm run dev
- Install MetaMask extension in browser
- Sign In into MetaMask account
- Copy private key from ganache and Import account from it
- Connect it with BlockVote WebApp and Cast your vote
Run Test after Some number of Votes For Better testing