【文件属性】:
文件名称:react_solidity:固体合同和React-Redux dApp样板
文件大小:316KB
文件格式:ZIP
更新时间:2021-02-03 01:07:34
redux boilerplate reactjs ethereum dapp
React固体样板
用法
开始新项目
git clone https://github.com/powerpiper/react_solidity
cd react_solidity
npm i
cd app
npm i
在开发中启动dApp
npm run rpc
truffle compile --network development
truffle migrate --network development --reset
// copy contract files to dApp:
npm run copy
cd app
npm start
通过本地geth进行部署
编辑所有者wwallet的.env。
cross-env ENV=production npm run geth:rinkeby
truffle migrate --network rinkeby
npm run copy
通过Infura进行部署
为您的Infura API密钥和所有者钱包编辑.env。
cross-env ENV=production truffle migrate --network