Node.js application which provide functional API to CCPX-application to Hyperledger's blockchain network This project based on LinuxOne server (s390x)
#Prerequisite
- Make sure your Docker is ready (both CLI and service(s))
- This bootstrap made for s390x. if you want to try with else, just focus on NODE.js dockerfile and change repo for node.
#Howto?
- sudo -i #if your system is not user-managed
- start.sh #run this script to bootstrap everything (Hyperledger network and node.js webserver)
- watching miracle !
#What will happen back there ?
- Create Hyperledger network (at least 1 peer, 1 membersvrc)
- Build go code on peer (go to .go dir and "go build .")
- Access Peer's REST service (defualt port: 7050) to deploy that builded go code (Keep HASHCODE given after successfully deployed)
- Start node.js application contains SDK (IBC)
- For initialized, should comment deployed_name (HASHCODE for GO which you deployed)
- SDK will download zip file which contain .go code which specify in SKD options to node_modules tmp
- After first run SDK, please stop it and uncomment HASHCODE to embed HASHCODE to your request. Otherwise your function cannot do query on blockchain server