concept fabric - network in category hyperledger

appears as: fabric-network
Programming Hyperledger Fabric: Creating Permissioned Blockchains

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.

The channel creation, join peer nodes to channel, install, approve and commit chaincode are all done using the peer CLI that ships with Fabric. As of this writing, it is not possible to do any of this from a Node app. A Node app would provide a friendly UI to perform these actions and could potentially be used by people who are not Fabric developers such as people in Ops. Fabric plans to develop a fabric-admin package which will provide ability to install, approve and commit chaincode from a Node app but the channel provisioning would still need to be done from the CLI. 82 Note that version 1.4 of the fabric-client Node package has support for channel creation and chaincode provisioning APIs but this package is deprecated and not suggested to be used with Fabric 2.0. In v2.0, fabric-network is the only recommended API for developing client applications. 83 As Fabric 2.0 is very new at time of this writing expect things to evolve. In fact v2.0 of the fabric-network package itself is under beta.

fabric-network is the package that enables us to make chaincode requests from a Node app. Begin by cd ing into the $/client-application directory. You should see a package.json with following dependencies in it: