BlockVote is a blockchain based election system which lets voters elect candidate in an election.
Make Sure that you've Truffle and Ganache installed
-
Clone the repo:
git clone https://github.com/iSumitBanik/BlockVote.git
-
Navigate to the folder:
cd BlockVote
-
Install dependencies:
npm install
along with ganache-cli installing using the commandnpm install ganache-cli -g
-
Open a new terminal window and run
ganache-cli
command, keep it running in the background. 4.1 On another window,run the deploy contract using:truffle migrate --reset
-
Spin up the Blockvote application by running:
npm run dev
-
To Cast Vote,
6.1 First Connect to localhost:8545 network in Metamask.
6.2 Secondly, copy one of the private key from the Ganache cli console and import it in the Metamask account section.
6.3 You should see 99-100 ETH in your address once you import it.
6.4 Manually connect Metamask to the cast vote page by clicking on the
Not Connected
option which is shown left side of your address.6.5 Once it shows connected, you can successfully cast your vote.