hyperledger composer开发环境搭建

2018-08-31  本文已影响22人  时间里的小恶魔

若有以前版本存在而你想要安装新版本需要先执行下面命令

docker kill $(docker ps -q) 
docker rm $(docker ps -aq)
docker rmi $(docker images dev-* -q)

(1)安装CLI工具

1.  npm install -g composer-cli
2.  npm install -g composer-rest-server
3.  npm install -g generator-hyperledger-composer
4.  npm install -g yo

(2)安装Playground

npm install -g composer-playground

(3)安装vscode 并安装hyperledger Composer插件

https://code.visualstudio.com/download

(4)安装hyperledger fabric

1.  mkdir ~/fabric-dev-servers && cd ~/fabric-dev-servers curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz tar -xvf fabric-dev-servers.tar.gz
2.cd ~/fabric-dev-servers ./downloadFabric.sh

(5)开始hyperledger fabric并创建PeerAdmin Card

cd ~/fabric-dev-servers ./startFabric.sh ./createPeerAdminCard.sh

(6)运行app(“Playground”)

composer-playground
上一篇下一篇

猜你喜欢

热点阅读