Navigation Menu

Skip to content

owenauch/bar-bet-ethereum

Repository files navigation

bar-bet-ethereum

A smart contract to allow two parties to place a bar bet arbitrated by a third party, and a React frontend to interact with the contract via web3.js and Metamask.

How to Run:

  1. Clone the repo: git clone https://github.com/owenauch/bar-bet-ethereum.git
  2. Install dependencies: npm install
  3. Install truffle globally (if you don't already have it): npm install -g truffle
  4. Start private dev blockchain: truffle develop
  5. Compile the contracts (while in truffle develop console): compile
  6. Migrate the contracts: migrate
  7. Outside the truffle develop console, start up the webserver: npm run start
  8. Set MetaMask private network to http://127.0.0.1:9545

You're free to start settling bets in Ether on the development network!

About

Smart contract and web3.js frontend to allow two parties to place a bar bet arbitrated by a third party on the Ethereum network.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published