知乎专栏 | 多维度架构 |
克隆代码
git clone https://github.com/hyperledger/blockchain-explorer.git cd blockchain-explorer
将 fabricexplorer.sql 导入到数据中
mysql -u<username> -p < db/fabricexplorer.sql
设置 channel 和 数据库连接
"channel": "mychannel", "mysql":{ "host":"127.0.0.1", "database":"fabricexplorer", "username":"root", "passwd":"123456" }
启动
npm install ./start.sh
进入 Hyperledger Explorer http://localhost:8080/