Installing and developing with Hyperledger Composer

Installing and developing with Hyperledger Composer

Before you begin

Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
Docker Engine: Version 17.03 or higher
Docker-Compose: Version 1.8 or higher
Node: 6.x (note version 7 is not supported)
npm: v3.x or v5.v
git: 2.9.x or higher
Python: 2.7.x

Step 1: Installing development tools

npm install -g composer-cli

npm install -g generator-hyperledger-composer

npm install -g composer-rest-server

npm install -g yo

Step 2: Start Fabric

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

tar xvzf fabric-dev-servers.tar.gz
  1. Use
cd ~/fabric-tools
#下载镜像
./downloadFabric.sh
#启动Fabric
./startFabric.sh
#创建composer connection profile
./createComposerProfile.sh

猜你喜欢

转载自blog.csdn.net/haiyanggeng/article/details/78551295