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

你可能感兴趣的:(Blockchain-explorer for hyperledger fabric 1.1)