Giter VIP home page Giter VIP logo

react-dapp's Introduction

Getting Started with Create React App

This project was bootstrapped with Create React App.

react-dapp

Use Create React App, react, antd,truffle and other libraries to build a DAPP project.

Truffle

创建文件夹并初始化目录

  • mkdir contracts && cd contracts && truffle init
  • truffle create contract Contacts 新建Contacts合约

基本命令 truffle -x

  • truffle init 基本项目初始化
  • truffle unbox 继承框架
  • truffle compile 合约编译
  • truffle migrate 合约部署
  • truffle test 测试
  • truffle deploy 部署

创建合约

  • truffle create contract Contacts

创建部署及迁移脚本

  • truffle create migrations Contacts

迁移

  • truffle migrations --network 【geth/development,,, 默认development】

启动

  • npm i
  • npm run start

说明

当前的目录结构是前端工程内嵌 truffle 工程目录,前端工程truffle文件夹同级也可以

参考博文

react-dapp's People

Contributors

liutaohz 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.