个人博客导航页(点击右侧链接即可打开个人博客):大牛带你入门技术栈
Hyperledger Explorer是一个简单易用的开源工具,可以用于监视区块链网络中的活动。Hyperledger Explorer支持Fabric、Iroha等多种区块链,可以运行在MocOS和Ubuntu下。
Hyperledger Fabric区块链开发教程:
2.0 Hyperledger Explorer源代码目录结构
blockchain-explorer
|
├── app Application backend root, Explorer configuration
| ├── rest REST API
| ├── persistence Persistence layer
| ├── fabric Persistence API (Hyperledger Fabric)
| └── platform Platforms
| | └── fabric Explorer API (Hyperledger Fabric)
| └── test Application backend test
|
└── client Web UI
├── public Assets
└── src Front end source code
├── components React framework
├── services Request library for API calls
├── state Redux framework
└── static Custom and Assets
3.0 Hyperledger Explorer的依赖说明
在安装和运行Hyperledger Explorer之前需要先满足以下依赖条件:
- Nodejs 8.11.x(注意目前v9.x还不支持)
- PostgreSQL 9.5或更高版本
- jq
- 基于Linux的操作系统,例如Ubuntu或MacOS
以下版本的Docker已经验证过支持Hyperledger Explorer:
- Docker CE 18.09.2或更高版本
- Docker Compose 1.14.0
4.0 克隆Hyperledger Explorer的Git仓库
执行以下命令克隆Hyperledger Explorer的Git仓库以获得最新版本:
git clone https://github.com/hyperledger/blockchain-explorer.git
cd blockchain-explorer
5.0 PostgreSQL数据库设置
首先进入app目录:
cd blockchain-explorer/app
然后修改explorerconfig.json以更新PostgreSQL数据库的配置:
"postgreSQL": {
"host": "127.0.0.1",
"port": "5432",
"database": "fabricexplorer",
"username": "hppoc",
&