-
Download and install NodeJS
Download and install NodeJS from here.
-
Install truffle and ganache-cli using node packager manager (npm)
npm install -g truffle npm install -g ganache-cli
-
Install metamask browser extension
Download and install metamask from here.
-
Clone this repository
git clone https://github.com/Md-TarikulIslam/BlockVote.git cd BlockVote
-
Run local Ethereum blockchain / Launch Ganache GUI.
ganache-cli
Note: Do not close
ganache-cli
(the blockchain network needs to be running all the time) -
Configure metamask on the browser with the following details
New RPC URL:
http://localhost:8545
Chain ID:1337
-
Import account(s) using private keys from ganache-cli to the metamask extension on the browser
-
Deploy smart contract to the (local) blockchain network (i.e ganache-cli)
# on the BlockVote directory truffle migrate
Note: Use
truffle migrate --reset
for re-deployments -
Launch the development server (frontend)
cd client npm install npm start