The console provides the following high level function:
The console relies on GRPC web to allow GRPC based communication with Orderers and Peers via Node.js. Management of Certificate Authorities is done via REST API and does not require a GRPC Web Instance.
For more Information see the documentation for the current IBM production offerings which are driven by the code in this Lab proposal.
Manage orderers without system channel
You can use the following steps to provision a network using Fabric test-network, add grpc-web proxy on that of that and import components into Console so that you can manage the test network.
Clone console
git clone https://github.com/hyperledger-labs/fabric-operations-console
cd fabric-operations-console
You can find more information on the test network setup from here https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html
./scripts/setupNetwork.sh up
./scripts/setupConsole.sh up
Run the following command to create a zip of the console JSONs to match the network setup above
./scripts/createAssets.sh
Switch to Nodes page and perform the following steps
Select peer "org1_peer1 - local"
Associate Identity
Select "Org1MSP Admin"
Select peer "org2_peer1 - local"
Associate Identity
Select "Org2MSP Admin"
Select orderer "orderer_local"
Associate Identity
Select "OrdererMSP Admin"
You should be able to manage channels, Using 2.0 lifecycle to install, approve, commit smart contracts following the guide
./scripts/setupConsole.sh down
./scripts/setupNetwork.sh down
This repository is managed using Lerna.
It contains the following applications:
To run commands in this repository, install lerna:
npm install -g lerna
For more information, see the documentation at: https://lerna.js.org/
lerna bootstrap
_Note: You can use lerna clean && lerna bootstrap
to delete existing node_modules
before lerna runs npm install
._
Builds Apollo and starts the file watcher for Athena.
Before running, ensure that you have the necessary local env files in the packages/athena/env
directory. See the athena readme for all the details on what these files should contain.
lerna run dev:athena
Starts Apollo and Athena in dev mode. Apollo proxies its backend requests to Athena.
lerna run build_all
lerna run dev:apollo
Note: even though this command is for running Apollo in dev mode, Athena still needs a production build of Apollo to start. If this command fails, it's likely because there is no Apollo build present.
lerna run test
Ensure that the docker
has enough resources to be able to build the images. We recommend 2 CPUs and 4 GB RAM available to build.
./scripts/buildImages.sh
If you do not have enough memory allocated to docker, the following command will fail with out of memory error similar to the below.
#16 109.5 The build failed because the process exited too early.
This probably means the system ran out of memory or someone called `kill -9` on the process.
Check out common error messages, fixes, and other questions in our FAQ.
Check out our api doc for APIs offered by the Console.