Build your first decentralized application, or Dapp, on the Ethereum Network with this tutorial!
This code is modified from: https://youtu.be/3681ZYbDSSk In this version you can use Solidity 0.5.0 and the latest version of MetaMask
Follow the steps below to download, install, and run this project.
Install these prerequisites:
- NPM: https://nodejs.org
- Truffle: https://github.com/trufflesuite/truffle
- Ganache: http://truffleframework.com/ganache/
- Metamask: https://metamask.io/
NOTE: You need to have Metamask Installed, configured and unlocked for this to work. Be sure to import a few accounts to play with.
git clone https://github.com/jmbanda/CSC4890_election_dapp
$ cd election
$ npm install
Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance. See free video tutorial for full explanation.
$ truffle migrate --reset
You must migrate the election smart contract each time your restart ganache.
$ npm run dev
Visit this URL in your browser: http://localhost:3000