This project was bootstrapped with Create React App.
Use Create React App, react, antd,truffle and other libraries to build a DAPP project.
创建文件夹并初始化目录
- mkdir contracts && cd contracts && truffle init
- truffle create contract Contacts 新建Contacts合约
- 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文件夹同级也可以