Blockchain-explorer for hyperledger fabric 1.1

blockchain-explorer for hyperledger fabric1.1

  • clone fabric-samples & run fabric
git clone https://github.com/hyperledger/fabric-samples.git
git checkout release-1.1
cd fabric-samples/balance-transfer
./runApp.sh
# in another terminal
./testAPIs.sh
  • clone Repository & change the version to release-3.5
git clone https://github.com/hyperledger/blockchain-explorer.git
git checkout release-3.5
  • install postgresql
apt-get install postgresql postgresql-contrib -y
  • initial database
cd blockchain-explorer/app/persistence/fabric/postgreSQL/db
./createdb.sh
  • set fabric network configuration
cd blockchain-explorer/app/platform/fabric
vim config.json
  • upgrade nodejs(optional)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install --lts
  • build blockchain-explorer
cd blockchain-explorer
npm install
cd blockchain-explorer/app/test
npm install
npm run test
cd client/
npm install
npm test -- -u --coverage
npm run build
  • run app
./start.sh
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。