fabric-go

It is for go chaincode debug of fabric

xuchengli

434

1

0.1.11

MIT

GitHub

This package consumes the following services:

fabric-go

It is for go chaincode debug of fabric.

fabric-go.png

Prerequisite

  1. Environment installation.

  2. 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
      

Installation

https://atom.io/packages/fabric-go

Instruction

  1. Open your .go chaincode file with atom.

  2. Toggle "Fabric Go" package in the "Packages" menu or status bar.

  3. Startup fabric network leverage "Fabric Go".

  4. Build & start your chaincode.

  5. Install > Instantiate > Invoke > Query your chaincode. After update the chaincode, you need to build & start your chaincode again.