Giter Site home page Giter Site logo

revcozmo / platform-frontend Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 43.54 MB

Decent.bet Platform Frontend - Participate in the sportsbook and play a variety of casino games using state channel technology.

JavaScript 94.61% HTML 1.54% CSS 3.85%

platform-frontend's Introduction

Decent.bet Platform Frontend

Built with Truffle's React Box

Consists of the platform pages - Sports betting, casino, house and more. The decent.bet website's repository can be found here

For a higher level overview on how the platform works, refer to this document

Development

To work with the platform, you'll have to deploy the contract to a locally running testrpc instance.

  1. Run TestRPC with the following configuration

    To mimic testnet

    testrpc --mnemonic "mimic soda meat inmate cup someone labor odor invest scout fat ketchup" -b 20 -l 6732810
    

    For development

    testrpc --mnemonic "mimic soda meat inmate cup someone labor odor invest scout fat ketchup" -l 6732810
    
  2. Add a .env file to the current directory with the following variables

    MNEMONIC='<MNEMONIC TO DEPLOY CONTRACTS AND CONTROL THE PLATFORM>'
    INFURA_KEY='<REGISTERED INFURA KEY>'
    DEFAULT_ACCOUNT='<DEFAULT ACCOUNT LINKED TO YOUR MNEMONIC>'
    
  3. Migrate contracts to TestRPC

    truffle migrate
    
  4. Run the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.

    npm run start
    
  5. To build the application for production, use the build command. A production build will be in the build_webpack folder.

    npm run build
    
  6. Deploy the build files using a simple express server and pm2 or serve

platform-frontend's People

Contributors

decent-dev avatar chentschel avatar

Watchers

James Cloos avatar The Reverend Cozmo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.