Code Monkey home page Code Monkey logo

ethrng's Introduction

ETHRNG

简介

基于以太坊区块链的随机数生成器

A random number generator based on the ethereum blockchain

要求

  • Linux / macOS / Windows

  • Node.js

安装

1. 安装 truffle

$ npm install -g truffle

2. 进入 ETHRNG 目录

$ cd ETHRNG

3. 安装 node 依赖

$ npm install

运行

1. 打开终端,进入 truffle 开发环境

$ truffle develop

2. 编译合约

truffle(devolop)> compile

3. 部署合约

truffle(develop)> migrate

4. 运行测试脚本

truffle(develop)> test

5. 测试 Web 站点

(1) 新建终端,进入 ETHRNG 目录

$ cd ETHRNG

(2) 启动 Web 服务

$ npm run dev

(3) 打开浏览器,访问 http://localhost:8080

参考

1. Node.js

https://nodejs.org

2. Truffle

http://truffleframework.com

3. webpack

https://webpack.js.org

4. Solidity

https://solidity.readthedocs.io

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.