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
npm install -g truffle
npm install ganache --global
https://metamask.io/download/
truffle version
- Open a terminal and run
truffle migrate
if you've edited the Election.sol file
truffle migrate --reset
- Then run
npm run dev
-
Create wallet in metamask plugin
-
Import accounts from Ganache
- Vote away!