Name: blockchain-explorer
Owner: Hyperledger
Description: Read-only mirror of https://gerrit.hyperledger.org/r/#/admin/projects/blockchain-explorer
Created: 2016-09-11 18:27:20.0
Updated: 2018-05-24 01:12:02.0
Pushed: 2018-05-24 12:53:47.0
Homepage: https://hyperledger.org
Size: 139150
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Hyperledger Explorer is a simple, powerful, easy-to-use, highly maintainable, open source browser for viewing activity on the underlying blockchain network.
app Application backend root
??? db Postgres script and help class
??? listener Websocket listener
??? metrics Metrics
??? mock_server Mock server used for development
??? service The service
??? socket Push real time data to front end
??? test Endpoint tests
??? timer Timer to post information periodically
??? utils Various utility scripts
client Web Ui
Following are the software dependencies required to install and run hyperledger explorer
Hyperledger Explorer works with Hyperledger Fabric 1.0. Install the following software dependencies to manage fabric network.
Clone this repository to get the latest using the following command.
git clone https://github.com/hyperledger/blockchain-explorer.git
.cd blockchain-explorer
.Connect to PostgreSQL database.
sudo -u postgres psql
Run create database script.
\i app/db/explorerpg.sql
\i app/db/updatepg.sql
Run db status commands.
\l
view created fabricexplorer database\d
view created tablesSetup your own network using Build your network tutorial from Fabric. Once you setup the network, please modify the values in config.json
accordingly.
On another terminal.
cd blockchain-explorer
Modify config.json to update network-config.
Modify config.json to update one of the channel
nnel": "mychannel",
: {
t": "127.0.0.1",
t": "5432",
abase": "fabricexplorer",
rname": "hppoc",
swd": "password"
If you are connecting to a non TLS fabric peer, please modify the
protocol (grpcs->grpc
) and port (9051-> 9050
) in the peer url and remove the tls_cacerts
. Depending on this key, the application decides whether to go TLS or non TLS route.
On another terminal.
cd blockchain-explorer/app/test
npm install
npm run test
cd blockchain-explorer
npm install
cd client/
npm install
npm test -- -u --coverage
npm run build
From new terminal.
cd blockchain-explorer/
./start.sh
(it will have the backend up).tail -f log.log
(view log)Hyperledger Explorer Project source code is released under the Apache 2.0 license. The README.md, CONTRIBUTING.md files, and files in the “images”, “snapshots“, and “mockData” folders are licensed under the Creative Commons Attribution 4.0 International License. You may obtain a copy of the license, titled CC-BY-4.0, at http://creativecommons.org/licenses/by/4.0/.