github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/docs/source/Setup/NodeSDK-setup.rst (about) 1 Hyperledger Fabric Client (HFC) SDK for Node.js 2 ----------------------------------------------- 3 4 The Hyperledger Fabric Client (HFC) SDK provides a powerful and easy to 5 use API to interact with a Hyperledger Fabric blockchain. 6 7 This document assumes that you already have set up a Node.js development 8 environment. If not, go 9 `here <https://nodejs.org/en/download/package-manager/>`__ to download 10 and install Node.js for your OS. You'll also want the latest version of 11 ``npm`` installed. For that, execute ``sudo npm install npm -g`` to get 12 the latest version. 13 14 Installing the hfc module 15 ~~~~~~~~~~~~~~~~~~~~~~~~~ 16 17 We publish the ``hfc`` node module to ``npm``. To install ``hfc`` from 18 npm simply execute the following command: 19 20 :: 21 22 npm install -g hfc 23 24 See `Hyperledger fabric Node.js client 25 SDK <http://fabric-sdk-node.readthedocs.io/en/latest/node-sdk-guide>`__ 26 for more information. 27 28 Hyperledger fabric network 29 -------------------------- 30 31 First, you'll want to have a running peer node and member services. The 32 instructions for setting up a network are `here <Network-setup.md>`__. 33 You may also use the 34 `Fabric-starter-kit <../starter/fabric-starter-kit.md>`__ that provides 35 the network.