项目作者: strange-labs-uk

项目描述 :
Simple raffle style lottery DApp
高级语言: JavaScript
项目地址: git://github.com/strange-labs-uk/ethereum-raffle.git
创建时间: 2018-01-16T21:05:26Z
项目社区:https://github.com/strange-labs-uk/ethereum-raffle

开源协议:

下载


Ethereum HashKeyRaffle Demo

setup

First install nodejs and
npm
.

  1. $ node --version
  2. v9.11.1

Then install dependencies:

  1. npm install
  2. (cd frontend && npm install)

using ganache and truffle to compile and run tests

First - you need a development server in one window:

  1. npm run ganache

Then in another window, you can run test:

  1. npm run test

To deploy a contract to the blockchain after tests have passed:

  1. npm run compile
  2. npm run migrate
  3. npm run initgame

Alternatively, run all three commands at the same time by doing:

  1. npm run deploy

You can enter development console mode (previously truffle develop):

  1. npm run console

run frontend

To run the frontend in hot reloading mode:

  1. (cd frontend && npm run watch)

Then open your browser to http://localhost:1234