- CURL latest version
- Docker - Installation
- Docker Compose
- GoLang - Installation
- Node JS
- NPM
First create a directory named fabric
mkdir fabric
then enter the directory by
cd fabric
Then Enter the command
sudo su
to become a super user and get the required permissions
To get the installation script -
curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh
Pulling the docker images -
./install-fabric.sh docker samples binary
or
./install-fabric.sh d s b
Change the current directory
cd fabric-samples/test-network
-
In this directory, you can find an annotated script, network.sh, that stands up a Fabric network using the Docker images on your local machine
-
From inside the test-network directory, run the following command to remove any containers or artifacts from any previous runs:
./network.sh down
You can then bring up the network by issuing the following command. You will experience problems if you try to run the script from another directory:
./network.sh up
You can use the network.sh script to create a channel between Org1 and Org2 and join their peers to the channel. Run the following command to create a channel with the default name of mychannel:
./network.sh createChannel