美文网首页
Blockchain-explorer for hyperled

Blockchain-explorer for hyperled

作者: Randy_ed88 | 来源:发表于2018-10-18 10:56 被阅读24次

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 hyperled

      本文链接:https://www.haomeiwen.com/subject/cyejzftx.html