- 软件要求:
ganache
、安装了MetaMask
插件的Chrome
浏览器、node
和npm
。 - 运行步骤
- 打开
ganache
,选择quickstart,点击右上角设置,在workspace中点击add project,选择./truffle-config.js
,在sever中设置端口为8545,点击右上角save and restart。 - 在remix中加载
CrowdFund.sol
,在MetaMask
中添加用户,然后点击部署,将右下角的blockchain
以及生成的CrowdFund.json
中abi
的值复制到./client/src/contracts/crowdfund.js
中。 - 进入
./client
目录下,运行npm install
和npm start
即可运行众筹项目。
- 打开