GithubHelp home page GithubHelp logo

web3's Introduction

Web3 Demo

使用方式:

一、clone项目到本地

git clone https://github.com/lxs2048/web3.git

二、安装依赖

npm i

三、创建本地区块链环境

npm i ganache -g

启动:ganache命令,生成了10个账号

四、复制私钥在MetaMask插件导入账号

五、编译并部署

truffle migrate --reset

六、启动项目

npm start

七、执行测试脚本生成订单

truffle exec ./scripts/createOrders.js

启动后执行的原因是项目监听生成订单自动更新页面

效果图如下

web3-demo

参考教程:https://www.bilibili.com/video/BV1Fd4y1x7jR

本项目在学习过程中有挺多改动,如交易所和一些测试文件提取了一些通用方法,前端的redux使用进行了封装优化

web3's People

Contributors

lxs2048 avatar

Watchers

 avatar

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.