From e9dad2a4951cc3b00180b3ed9d23cbdb89fe6c05 Mon Sep 17 00:00:00 2001 From: Atsushin Date: Thu, 9 Apr 2020 20:20:54 +1000 Subject: [PATCH] BE-740 Update the document for multi-org (#99) Signed-off-by: Atsushi Neki --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 7e79873b3..1956e47c4 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ Hyperledger Explorer is a simple, powerful, easy-to-use, well maintained, open s - [7.0 Configure Hyperledger Fabric ](#Configure-Hyperledger-Fabric) - [7.1 Optional: Configure Fabcar Sample ](#Configure-Fabcar-Sample) - [7.2 Optional: Configure Balance Transfer Sample ](#Configure-Balance-Transfer-Sample) +- [7.3 Optional: Configure for monitoring multiple organizations](#Configure-Multiple-Organization) - [8.0 Hyperledger Composer Setup ](#Hyperledger-Composer-Setup) - [8.1 Configure Hyperledger Explorer for Composer ](#Configure-Hyperledger-Explorer-for-Composer) - [9.0 Optional: Hyperledger Cello Setup ](#Hyperledger-Cello-Setup) @@ -267,6 +268,27 @@ Setup Fabcar sample network by following [Fabcar Sample Network](https://hyperle - Balance Transfer Sample network based on this link [CONFIG-BALANCE-TRANSFER-HLEXPLORER.md](CONFIG-BALANCE-TRANSFER-HLEXPLORER.md) + + +# 7.3 Optional: Configure for monitoring multiple organizations + +You can also configure multiple profiles in `config.json` for monitoring multiple organizations in a single Explorer instance. It's quite straightforward. You just need to prepare config.json as below and connection profile for each organization (for example: org1-network.json & org1-network.json). Note that you need to initialize your backend database once when applying v1.0.0-rc3 and above first time in your local environment. Because we've changed database schema in backend database since this version. + +```json +{ + "network-configs": { + "org1-network": { + "name": "org1-network", + "profile": "./connection-profile/org1-network.json" + }, + "org2-network": { + "name": "org2-network", + "profile": "./connection-profile/org2-network.json" + } + }, + "license": "Apache-2.0" +} +```