Build this e-voting decentralized application, or Dapp, on the Ethereum Network using these steps!
Follow the steps below to download, install, and run this project.
These are the required prerequisites for this project, hence the host system must have these installed.
- NPM: https://nodejs.org
- Truffle: https://github.com/trufflesuite/truffle
- Ganache: http://truffleframework.com/ganache/
- Metamask: https://metamask.io/
Link to clone project: git clone https://github.com/aryan-mehta05/E-Voting-System-using-Ethereum-Blockchain
After cloning/downloading the files, save them in your new project folder.
$ cd <project-folder-name>
$ 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. !Remember this step while running the project since it may lead to errors and the project wont run!
- Unlock Metamask
- Connect metamask to your local Etherum blockchain provided by Ganache.
- Import an account provided by ganache.
$ npm run dev
Visit this URL in your browser: http://localhost:3000
If you get stuck, please reference this video tutorial.
DAPP University tutorial for Node, Truffle, Ganache and Metamask timestamp: 8:53 - 11:38