A fully Decentralized application, or Dapp, on the Ethereum Network!
Follow the steps below to download, install, and run this project.
Install these prerequisites to run this application.
- NPM: https://nodejs.org
- Truffle: https://github.com/trufflesuite/truffle
- Ganache: http://truffleframework.com/ganache/
- Metamask: https://metamask.io/
https://github.com/dibakarsutradhar/election.git
$ cd election
$ npm install
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.
- Open Metamask Chrome Extension
- Create a New Account if you already don't have one
- Change the network from Main ETH Network to Custom RPC
- Set up your Custom Network using Ganache's RPC Server. (eg. http://localhost:7545)
- Connect metamask to your local Etherum blockchain provided by Ganache.
- Import an account provided by ganache.
- Grab a private key from one of the ganache account.
$ npm run dev
Visit this URL in your browser: http://localhost:3000