Create and deploy a block chain network using Hyperledger Fabric SDK for Java on Ubuntu 22.04 LTS

Follow these steps to build your first blockchain network using hyperledger fabric sdk for java.



Step 1: Check if curl is installed.

Command: curl --version

Command if not installed: apt install curl


Step 2: Check if docker is installed.

Command: docker --version

Command if not installed: apt install docker.io


Step 3: Check if docker-compose is installed

Command: docker-compose --version

Command if not installed: apt install docker-compose


Step 5: Check if go is installed.

Command: go version 

Command if not installed: apt install golang-go


Step 6: Check if nodejs is installed.

Command: node –v

Command if not installed: apt install nodejs


Step 7: Check if npm is installed.

Command: npm --version

Command if not installed: apt install npm


Step 8:  Check if git is installed.

Command: git --version


Step 4: Check if python is installed.

Command: python3 --version


Step 9: Configure some git properties.

Command: git config --global core.autocrlf false

                   git config --global core.longpaths true


Step 10: Create a separate directory for particular preoject.

Command: mkdir MyHyperLedger


Step 11: Change to newly created directory.

Command: cd MyHyperLedger


Step 12: Clone the repository.

Command: curl –sSL http://bit.ly/2ysbOFE | bash -s 1.4.4


Step 13: Change to fabric-samples/first-network/ directory

Command: cd fabric-samples/ first-network/


Step 14: List out the contents in the file.

Command: ls or ll


Step 15: Generate certificates and Genesis block for mychannel.

Command: ./byfn.sh generate


Step 16: Build your first network.

Command: ./byfn.sh up –l java


Step 17: Down your network

Command: ./byfn.sh down


Or watch the video to follow the steps:




Comments

  1. So after this network creation, how to configure for OA and membership so that we can go about with chaincode deployment for an actual hyperleder fabric application.

    ReplyDelete
  2. Hi, and Thank you.
    I'm getting this:
    curl –sSL http://bit.ly/2ysbOFE | bash -s 1.4.4
    curl: (3) Failed to convert –sSL to ACE; string contains a disallowed character

    any hint?

    Thanks again

    ReplyDelete

Post a Comment

Popular posts from this blog

Installing Hyper Ledger Fabric on Windows 10

Add the sensors to the Robot object and develop the line-following behavior code.