区块链系列之marbles安装指南
【摘要】 git clone https://github.com/IBM-Blockchain/marbles2. 下载fabric-samples项目 git clone https://github.com/hyperledger/fabric-samples.git cd fabric-samples/fabcarsudo npm install 安装项目需要的依赖文件3. 启动网络,运行、注...
git clone https://github.com/IBM-Blockchain/marbles
2. 下载fabric-samples项目 git clone https://github.com/hyperledger/fabric-samples.git
cd fabric-samples/fabcar
sudo npm install 安装项目需要的依赖文件
3. 启动网络,运行、注册用户、执行查询
./startFabric.sh
npm install
node enrollAdmin.js
node registerUser.js
node query.js
4. 拷贝fabric-samples/fabcar/hfc-key-store文件到/root/.hfc-key-store目录:
mv /root/hfc-key-store/ /root/.hfc-key-store/
5. 修改marbles\config\connection_profile_local.json
6. 运行项目、查看效果
npm install gulp -g
npm install
gulp marbles_local
7. 在浏览器访问localhost:3001,可以按照引导步骤配置ca服务器等,配置结束应该能看到动图显示的界面。
重点:如果采用fabric 1.4,需要修改package.json文件,采用对应1.4的node sdk,并且有几行代码也需要修改,因为API有了改变。
【版权声明】本文为华为云社区用户原创内容,未经允许不得转载,如需转载请自行联系原作者进行授权。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
作者其他文章
评论(0)