Install these prerequisites to follow along with the tutorial.
NPM: https://nodejs.org
Truffle: https://github.com/trufflesuite/truffle
Ganache: http://truffleframework.com/ganache/
Metamask: https://metamask.io/
git clone https://github.com/rahulthakkar796/Election_Dapp.git
$ cd election
$ npm install
$ npm install -g webpack webpack-cli
Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance.
$ truffle migrate --reset You must migrate the election smart contract each time your restart ganache.
Unlock Metamask
Connect metamask to your local Etherum blockchain provided by Ganache.
Import an account provided by ganache.
npm run start