Developer Guide

How to implement or to extend the functionality of the software.

2 minute read

GBN solution can be divided into two parts:

  • The blockchain smart contract (called chaincode in Hyperledger Fabric jargon)
  • The blockchain network definition, which setups the Hyperledger Fabric elements to run the solution.

This guide contains general guidance on how to extend each of the parts of the solution

Chaincode development

To extend the current implementation of the GBN chaincode the following steps should be taken:

  1. We recommend working with Vscode with IBM Blockchain Platform extension as the development and testing environment for chaincode
    • Installation for VScode can be found here
    • Installation instructions and list of prerequisites for IBM Blockchain Platform Extension for Vscode can be found here
    • Guided tutorials for using the IBM Blockchain Platform extension for VScode can be found within the extension itself, instructions on how to access tutorial gallary can be found here
  2. Clone the chaincode source code from Dataports repository
  3. Import the chaincode project into Vscode development environment and continue development as described in the extension documentation
  4. Chaincode (written in javascript/node.js) can be extended to support more data elements, additional access rules and additional business logic. Current documentation of available chaincode functionality can be found here

BlockChain network

To extend the current implementation of the VGM chaincode the following steps should be taken:

  1. We recommend working with Vscode with IBM Blockchain Platform extension as the development and testing environment for chaincode
    • Installation for VScode can be found here
    • Installation instructions and list of prerequisites for IBM Blockchain Platform Extension for Vscode can be found here
    • Guided tutorials for using the IBM Blockchain Platform extension for VScode can be found within the extension itself, instructions on how to access tutorial gallary can be found here
  2. Clone the Network definitions and scripts from Dataports repository
  3. Import the chaincode project into Vscode development environment and continue development as described in the extension documentation
  4. Modify the Hyperledeger Fabric config files and the bash scripts to add the elements requried. Follow the Hypeledger Fabric Documenation

Frontend development

The frontend component has been developed as an Angular project. Node.js is used for serving it.

The source code can be found here


Last modified April 19, 2023: Files update (a811bf0)