brynbellomy / consensys-academy-prediction-market

A prediction market smart contract (Solidity) with a React frontend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consensys academy: prediction market project

screenshot

how to run

  1. Install dependencies:
$ yarn
  1. Run testrpc/geth/parity

  2. Deploy contracts:

$ truffle migrate --network dev --reset
  1. Build frontend:
$ webpack
  1. Serve frontend:
$ cd build && python -m SimpleHTTPServer

You can view the app at http://localhost:8000.

running tests

$ truffle test --network dev

Unfortunately, the tests currently give all sorts of weird errors in geth, probably related either to nondeterministic block mining.

About

A prediction market smart contract (Solidity) with a React frontend.


Languages

Language:JavaScript 98.3%Language:CSS 0.9%Language:HTML 0.8%