Fabric Explorer is a web-based block-explorer application for Hyperledger Fabric blockchains. This project was generated with Angular CLI version 7.1.4 and NodeJs version 8.9.4.
- Set up your Hyperledger Fabric Blockchain (You may use the sample from the official repository
https://hyperledger-fabric.readthedocs.io/en/release-1.3/install.html
for testing purposes). - Create a user in your Hyperledger Fabric network.
- Navigate to backend/Fabric/FabricNetwork.js and update the path to HFC keys and Channel Name.
- Navigate to backend/Fabric/queries.js and update the
user_name
variable.
In the root project directory run node server.js
. The server is started at http://localhost:3000/
. Three api are opened as follows:
http://localhost:3000/api/blocks
: Fetches three recent blocks.http://localhost:3000/api/headline
: Fetches a summary of the current state of the blockchain.http://localhost:3000/api/trnxn/:trnxnid
: Fetches the block that contains a particular transaction which is identified the transaction-id(trnxnid
).
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.