ise-ethereum / on-chain-chess

Play decentralised chess on the Ethereum blockchain!
MIT License
214 stars 39 forks source link

On Chain Chess

Stories in Ready

This application can be used to play chess over the Ethereum block-chain. It is build in the scope of a project of the ise TU Berlin.

Information

This is loosely based on ethereum-webpack-example-dapp.

How to run

  1. Run a local Ethereum node with JSON-RPC listening at port 8545 (default). testrpc would be the most straight-forward method.

    # Using testrpc (recommended)
    testrpc
    
    # -----------OR-----------
    
    # If you are running Geth, 
    # make sure to run in testnet or private net and enable rpc
    geth --testnet --rpc
  2. Install dependencies

    npm install
  3. Run, during development

    npm start

    This starts the build process and also a local dev server. Open the given URL in your favorite web browser.

    Webpack is now started in watch mode, any changes done at JavaScript or Solidity files will automatically rebuild the affected modules.

  4. Run SHH proxy, for P2P functions to work

  5. Build, for deployment

    npm run build

    Only index.html and bundle.js are required to be hosted and served.

  6. Run tests

    npm run test
  7. You can run only one test file if you like: npm test -- test/test_elo.js

FAQ