How to use Hyperledger blockchain-explorer
Xiaobian to share with you how to use Hyperledger blockchain-explorer, I believe most people do not know how to use it, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go and find out about it together!
1. entered the catalogue
/opt/gopath/src/github.com/hyperledger/blockchain-explorer
Create psg.yaml
# Use postgres/example user/password credentialsversion: '3.1'services: db: image: postgres restart: always environment: POSTGRES_PASSWORD: postgres ports: - 5432:5432 volumes: - ./ psgdata:/var/lib/postgresql/data adminer: image: adminer restart: always ports: - 8081:8080
Start DB
docker-compose -f psg.yaml up
After startup, localhost:8081 does not administer the management interface, 5432 is db port
Log in postgres/postgres, create database and tables, use script for
app/persistance/postgreSQL/db/*.sql
Make sure the configuration in the file/opt/gopath/src/github.com/hyperledger/blockchain-explorer/app/persistence/post/db/pgconfig.json matches the real environment.
2. Run npm install on all directories with package.json
Start the first-network in fabric-samples
Start app usage
cd appnode main.js
Start client
cd clientnpm run start The above is "Hyperledger blockchain-explorer how to use" All the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!