-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to the node SDK docs and sample files
cherry-picking commit 70237c3. Fix broken links and formatting issues on doc files Include docker image and compose files to support docs Update sample apps with environment settings fix src and tag in dockerfile fix docker image name in doc Change-Id: I7e2781411199039ee851ec5da63d3f9377767cac Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
- Loading branch information
Showing
12 changed files
with
458 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,50 @@ | ||
# Setting up the Full Hyperledger fabric Developer's Environment | ||
|
||
1. See [Setting Up The Development Environment](../dev-setup/devenv.md) to set up your development environment. | ||
* See [Setting Up The Development Environment](../dev-setup/devenv.md) to set up your development environment. | ||
|
||
* The following commands are all issued from the vagrant environment. The following will open a terminal session: | ||
|
||
2. Issue the following commands to build the Hyperledger fabric client (HFC) Node.js SDK including the API reference documentation | ||
``` | ||
cd <your cloned location>/fabric/devenv | ||
vagrant up | ||
vagrant ssh | ||
``` | ||
|
||
``` | ||
* Issue the following commands to build the Hyperledger fabric client (HFC) Node.js SDK including the API reference documentation | ||
|
||
``` | ||
cd /opt/gopath/src/github.com/hyperledger/fabric/sdk/node | ||
make all | ||
``` | ||
3. Issue the following command where your Node.js application is located if you wish to use the `require("hfc")`, this will install the HFC locally. | ||
|
||
``` | ||
npm install /opt/gopath/src/github.com/hyperledger/fabric/sdk/node | ||
``` | ||
|
||
Or use point directly to the HFC directly by using the following require in your code: | ||
```javascript | ||
``` | ||
* Issue the following command where your Node.js application is located if you wish to use the `require("hfc")`, this will install the HFC locally. | ||
|
||
``` | ||
npm install /opt/gopath/src/github.com/hyperledger/fabric/sdk/node | ||
``` | ||
|
||
Or point to the HFC directly by using the following `require()` in your code: | ||
|
||
```javascript | ||
require("/opt/gopath/src/github.com/hyperledger/fabric/sdk/node"); | ||
``` | ||
|
||
4. To see the API reference documentation which is built in step 2: | ||
``` | ||
cd /opt/gopath/src/github.com/hyperledger/fabric/sdk/node/doc | ||
``` | ||
|
||
The [Self Contained Node.js Environment](node-sdk-self-contained.md) will have the reference documentation already built and may be accessed by: | ||
``` | ||
``` | ||
|
||
* To build the API reference documentation: | ||
|
||
``` | ||
cd /opt/gopath/src/github.com/hyperledger/fabric/sdk/node | ||
make doc | ||
``` | ||
|
||
* To build the reference documentation in the [Self Contained Node.js Environment](node-sdk-self-contained.md): | ||
|
||
``` | ||
docker exec -it nodesdk /bin/bash | ||
cd /opt/gopath/src/github.com/hyperledger/fabric/sdk/node/doc | ||
``` | ||
cd /opt/gopath/src/github.com/hyperledger/fabric/sdk/node | ||
make doc | ||
``` | ||
|
||
* The the API reference documentation will be available in: | ||
``` | ||
/opt/gopath/src/github.com/hyperledger/fabric/sdk/node/doc | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.