/e-voting

E-voting DApp using Blockchain

Primary LanguageJavaScriptMIT LicenseMIT

E-Voting DApp using Blockchain technology

Installation :

1. npm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
nvm install node
n=$(which node)
n=${n%/bin/node}
chmod -R 755 $n/bin/* 
sudo cp -r $n/{bin,lib,share} /usr/local 

2. truffle

npm install -g truffle

3. ganache

npm install ganache --global

4. MetaMask for your browser

https://metamask.io/download/

Verify everything is working

truffle version

Execute :

  1. Open a terminal and run
truffle migrate 

if you've edited the Election.sol file

truffle migrate --reset
  1. Then run
npm run dev
  1. Create wallet in metamask plugin

  2. Import accounts from Ganache

import1

import2

import3

  1. Vote away!

vote1

vote2