上传者: 42134554
|
上传时间: 2022-09-28 20:57:02
|
文件大小: 249KB
|
文件类型: ZIP
TopSciFiVoter
Dapp可以对您的最佳科幻电影进行投票
先决条件
要在浏览器中运行它,您需要安装MetaMask浏览器扩展。
设置
# install truffle
npm i -g truffle
# install dependencies
npm install
# install testrpc
npm install -g ethereumjs-testrpc
跑步
# start testrpc
testrpc
# deploy smart contracts to testrpc (will use testrpc private key #1 to deploy)
truffle migrate
# serve with hot reload at localhost:8080
npm run dev
# import testrpc private key