anandbanik / fabric-getting-started

fabric 2.0 getting-started

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fabric 2.0 Getting Started Tutorial

Pre-requsite for the tutorial

  1. Install Docker
  2. Install Docker Compose
  3. Disconnect from VPN, if possible

Install Binaries and Download Docker images.

  1. Use the below script to install fabric 2.0 binaries and download docker images
./install-fabric.sh

Running the Fabric 2.0 Test network

  1. Go to the test-network directory.

  2. Use the network.sh script to run the test network using the below options.

Usage:
  network.sh <Mode> [Flags]
    <Mode>
      - 'up' - bring up fabric orderer and peer nodes. No channel is created
      - 'up createChannel' - bring up fabric network with one channel
      - 'createChannel' - create and join a channel after the network is created
      - 'deployCC' - deploy the fabcar chaincode on the channel
      - 'down' - clear the network with docker-compose down
      - 'restart' - restart the network

    Flags:
    -ca <use CAs> -  create Certificate Authorities to generate the crypto material
    -c <channel name> - channel name to use (defaults to "mychannel")
    -s <dbtype> - the database backend to use: goleveldb (default) or couchdb
    -r <max retry> - CLI times out after certain number of attempts (defaults to 5)
    -d <delay> - delay duration in seconds (defaults to 3)
    -l <language> - the programming language of the chaincode to deploy: go (default), javascript, or java
    -v <version>  - chaincode version. Must be a round number, 1, 2, 3, etc
    -i <imagetag> - the tag to be used to launch the network (defaults to "latest")
    -verbose - verbose mode
  network.sh -h (print this message)

 Possible Mode and flags
  network.sh up -ca -c -r -d -s -i -verbose
  network.sh up createChannel -ca -c -r -d -s -i -verbose
  network.sh createChannel -c -r -d -verbose
  network.sh deployCC -l -v -r -d -verbose

 Taking all defaults:
    network.sh up

 Examples:
  network.sh up createChannel -ca -c mychannel -s couchdb -i 2.0.0
  network.sh createChannel -c channelName
  network.sh deployCC -l java

About

fabric 2.0 getting-started


Languages

Language:Shell 74.3%Language:Java 25.7%