Skip to content

Latest commit

 

History

History
executable file
·
39 lines (20 loc) · 1 KB

README.md

File metadata and controls

executable file
·
39 lines (20 loc) · 1 KB

Ballot dApp

A simple Ballot dApp using jQuery, Semantic and web3.js.

Installation

  1. Install geth, create an account:

     geth --testnet account new
    
  2. Copy the new account address, paste it in the ZeroGox faucet, click "Gimme Wei":

     https://zerogox.com/ethereum/wei_faucet
    
  3. Run an Ethereum testnet geth node:

     geth --testnet --unlock "0" --shh --rpc --rpcapi="db,eth,net,web3,shh" --rpcaddr="0.0.0.0" --rpccorsdomain="*"
    
  4. Open the dApp.html in Chrome

Usage

  • Create a Ballot with a Number of Proposals

  • Give Right to Vote/Delegate or Vote on Proposals

  • Check The Winning Proposal

Starding A Simple Python Server

Note the directory you start your server in, is the directory is will serve the files at. So you will want to "cd ballot" over to the Ballot dApp folder.

  1. Open Terminal

  2. Start a Simple Python Server

     python -m SimpleHTTPServer 8000
    
  3. Open "http://localhost:8000/dApp.html" in Chrome