VSCode_IBP_Tutorial

IBM Blockchain Platform Extension for VS Code Tutorial


Project maintained by yigitpolat Hosted on GitHub Pages — Theme by mattgraham

IBM Blockchain Platform Extension for VS Code Tutorial

This document has been prepared by Kemal Aydin (kemal.aydin@ibm.com) and Yigit Polat (yigit.polat@ibm.com), and contains a visual description of IBM Blockchain Platform Extension for VS Code and its capabilities as well as providing comprehensive content to whom demands hands-on trainings.

The IBM Blockchain Platform Visual Studio (VS) Code extension provides an enviroment to develop, test, and debug their smart contracts. Moreover, it brings ease to developers to deploy their smart contracts to preconfigured Hyperledger Fabric network on their local machines.

The screenshots in this guide were taken from an Ubuntu Virtual Machine which contains all the required tools and configurations. If you would like to follow the steps, don’t hesitate to contant to document owners to get the VM image.

Table of Contents

  1. Package a Smart Contract Project
  2. Deploy a Local Hyperledger Fabric Network
  3. Install and Instantiate the Smart Contract
  4. Setting Up Hyperledger Fabric SDK for Node.js

1. Package a Smart Contract Project

Step 1.1

Launch VS Code

Step 1.2

Open Folder

Step 1.3

Select Folder

Step 1.4

Project

Step 1.5

IBP

Step 1.6

Package

Step 1.7

Package

2. Deploy a Local Hyperledger Fabric Network

Step 2.1

Start Fabric Runtime

Step 2.2

Local Fabric OPS

Step 2.3

Docker

    docker ps -a
    docker images

3. Install and Instantiate the Smart Contract

Step 3.1

install-chaincode#1

Step 3.2

install-chaincode#2

Step 3.3

instantiate-chaincode#1

Step 3.4

instantiate-chaincode#2

Step 3.5

instantiate-chaincode#3

Step 3.6

instantiate-chaincode#4

Step 3.7

instantiate-chaincode#5

Step 3.8

instantiate-chaincode#6

Step 3.9

instantiate-chaincode#7

Step 3.10

instantiate-chaincode#8

Step 3.11

instantiate-chaincode#9

Step 3.12

instantiate-chaincode#10

Step 3.13

instantiate-chaincode#11

Step 3.14

instantiate-chaincode#12

Step 3.15

instantiate-chaincode#13

Step 3.16

instantiate-chaincode#14

Step 3.17

instantiate-chaincode#15

Step 3.18

instantiate-chaincode#16

Step 3.19

instantiate-chaincode#17

Step 3.20

instantiate-chaincode#18

Step 3.21

instantiate-chaincode#19

Step 3.22

instantiate-chaincode#20

Step 3.23

instantiate-chaincode#21

Step 3.24

instantiate-chaincode#22

4. Setting Up Hyperledger Fabric SDK for Node.js

Step 4.1

hyperledger-fabric-sdk#1

Step 4.2

hyperledger-fabric-sdk#2

Step 4.3

hyperledger-fabric-sdk#3

Step 4.4

hyperledger-fabric-sdk#4

Step 4.5

hyperledger-fabric-sdk#5

Step 4.6

hyperledger-fabric-sdk#6

Step 4.7

hyperledger-fabric-sdk#7

Step 4.8

hyperledger-fabric-sdk#8

Step 4.9

hyperledger-fabric-sdk#9

Step 4.10

hyperledger-fabric-sdk#10

Step 4.11

hyperledger-fabric-sdk#11

Step 4.12

hyperledger-fabric-sdk#12

Step 4.13

hyperledger-fabric-sdk#13

References

License

Apache License 2.0