项目
在 GitHub 查看
ise-ethereum/on-chain-chess
关于
Play decentralised chess on the Ethereum blockchain!
商业与金融实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文On Chain Chess
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
- 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
- Install dependencies
npm install
- 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.
Build, for deployment
npm run build
Only index.html and bundle.js are required to be hosted and served.
- Run tests
npm run test
- You can run only one test file if you like:
npm test -- test/test_elo.js
FAQ
- Deployment fails with out-of-gas
When using testrpc, try raising the gas limit. Install any version newer than this:npm install -g git://github.com/ethereumjs/testrpc.git#b3ec03eb8e2615453adcea7a93188ceb578a4094and then run withtestrpc -l 4000000, for example.
探索相关项目
加载中…