JarenL / SportApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SportApp

Sports betting decentralized application built using Ethereum smart contracts.

Imgur

Getting Started

These instructions will get you a copy of the project up and running on your local machine to check it up. As of 8/26/2018 only tracks one sport, left drawer not functional.

Prerequisites

What things you need to run this application:

  • Chrome
  • Metamask
  • Ganache (or other TestRPC tool)
  • Truffle

Installing

Install Ganache:

Install NodeJS & NPM:

Install Truffle:

or

npm install -f truffle

Install MetaMask (Chrome only):

How to Run

  • After cloning repo, go to local SportApp directory
  • truffle compile
  • truffle migrate --reset
  • npm run start
  • In Chrome window new page should open
  • Insert desired teams, at the moment contract is hard coded for China to always win, China not being in a match will not be able to resolve winner.
  • Change wallets and place bets.
  • "Resolve" watch from wallet that created contract as it is the "owner"

Important

  • Running truffle migrate --reset required if contract files changed
  • Metamask wallets will need to be reset after truffle migrate --reset
  • Creating match, placing bets, and resolving matches will have metamask popup to confirm transaction. Sometimes pops up in chrome or will have notification on metamask icon.

Built With

  • Truffle - The smart contract framework used
  • React - Front end client.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Shout out to Google search

About


Languages

Language:JavaScript 70.5%Language:CSS 29.4%Language:HTML 0.1%