It is for go chaincode debug of fabric.
-
Environment installation.
- Nodejs: https://nodejs.org/en/download/package-manager
- Docker: https://docs.docker.com/install
- Docker Compose: https://docs.docker.com/compose/install
-
Docker images preparation for fabric.
-
Orderer image.
$ docker pull hyperledger/fabric-orderer:1.4
-
Peer image.
$ docker pull hyperledger/fabric-peer:1.4
-
CouchDB image.
$ docker pull hyperledger/fabric-couchdb:0.4.18
-
CLI tools image.
$ docker pull hyperledger/fabric-tools:1.4
-
Chaincode environment image.
$ docker pull hyperledger/fabric-ccenv:1.4
-
https://atom.io/packages/fabric-go
-
Open your .go chaincode file with atom.
-
Toggle "Fabric Go" package in the "Packages" menu or status bar.
-
Startup fabric network leverage "Fabric Go".
-
Build & start your chaincode.
-
Install > Instantiate > Invoke > Query your chaincode. After update the chaincode, you need to build & start your chaincode again.