dc-sdk-example
DApp on dao casino protocol example
Last updated 2 years ago by altvnv .
MIT · Original npm · Tarball · package.json
$ cnpm install dc-sdk-example 
SYNC missed versions from official npm registry.

Using the Sample Game in DAO.Casino SDK

Requirements

  • installed DC-CLI
  • npm.js
  • node.js (10 or newer)
  • installed yarn If you use Windows, call npm install --global windows-build-tools. This command installs components necessary for this operation system.

Quick start

  1. Clone the sample game repository and start the DC-CLI in it:
git clone --depth=1 https://github.com/DaoCasino/dc-sdk-example ./myDapp
cd ./myDapp

npm i & npm run start
or
yarn install & yarn start
  1. Start the relevant bankroller for the network you want to use (Ropsten, Local, etc).
node ./bin/daemon <privateKey> [options]

where <privateKey> is the private key reserved for bankroller, and [options] defines the blockchain network.

DApp Core files

Your dapp core files

  • ./contracts/myDAppGame.sol (contains the basic logic for this sample)
  • dapp/dapp.logic.js
  • dapp/*
  • dapp/assets/js/tutorial.js (this is where you are supposed to configure your game settings)

Detailed Documentation

Current Tags

  • 0.1.37                                ...           latest (2 years ago)

10 Versions

  • 0.1.37                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |