Use node SDK to register/enroll user, followed by deploy/invoke¶
Upon success of each node program, you will receive a “200” response in the terminal.
Register/enroll & deploy chaincode (Linux or OSX):
# Deploy initializes key value pairs of "a","100" & "b","200". GOPATH=$PWD node deploy.js
Register/enroll & deploy chaincode (Windows):
# Deploy initializes key value pairs of "a","100" & "b","200". SET GOPATH=%cd% node deploy.js
Issue an invoke. Move units 100 from “a” to “b”:
Query against key value “b”:
# this should return a value of 300 node query.js
Explore the various node.js programs, along with
better understand the SDK and APIs.