A Decentralized Ethereum Voting Application Tutorial
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build/contracts Locks solidity version at 4.2.0 May 18, 2018
contracts Locks solidity version at 4.2.0 May 18, 2018
migrations 1. Smoke Test Jan 20, 2018
src 4. Watch Events Jan 25, 2018
test 4. Watch Events Jan 25, 2018
README.md Adds 2019 code update link Jan 16, 2019
bs-config.json truffle unbox pet-shop Jan 18, 2018
package-lock.json truffle unbox pet-shop Jan 18, 2018
package.json truffle unbox pet-shop Jan 18, 2018
truffle.js truffle unbox pet-shop Jan 18, 2018

README.md

Election - DAPP Tutorial

Build your first decentralized application, or Dapp, on the Ethereum Network with this tutorial!

Full Free Video Tutorial:** https://youtu.be/3681ZYbDSSk

2019 Updated Code

https://github.com/dappuniversity/election/tree/2019_update

Follow the steps below to download, install, and run this project.

Dependencies

Install these prerequisites to follow along with the tutorial. See free video tutorial or a full explanation of each prerequisite.

Step 1. Clone the project

git clone https://github.com/dappuniversity/election

Step 2. Install dependencies

$ cd election
$ npm install

Step 3. Start Ganache

Open the Ganache GUI client that you downloaded and installed. This will start your local blockchain instance. See free video tutorial for full explanation.

Step 4. Compile & Deploy Election Smart Contract

$ truffle migrate --reset You must migrate the election smart contract each time your restart ganache.

Step 5. Configure Metamask

See free video tutorial for full explanation of these steps:

  • Unlock Metamask
  • Connect metamask to your local Etherum blockchain provided by Ganache.
  • Import an account provided by ganache.

Step 6. Run the Front End Application

$ npm run dev Visit this URL in your browser: http://localhost:3000

If you get stuck, please reference the free video tutorial.