What Is basic-network Sample Network

Q

What is basic-network Sample Network?

✍: FYIcenter.com

A

basic-network is a Hyperledger Fabric network example included in the "Samples, Binaries and Docker Images" package.

The basic-network Sample Network provides scripts and configuration files to create a simple Hyperledger Fabric network with a single organization on your local host for learning purposes.

The basic-network sample network is also used by other sample tutorials like WYFA (Write Your First Application) tutorial.

1. Review contents in the basic-network directory:

$ cd ~/hyperledger-binaries/fabric-samples/

$ ls -l basic-network
-rw-rw-r-- 1 fyicenter  770 Apr  1 23:01 README.md
drwxrwxr-x 2 fyicenter 4096 Apr  1 23:01 config
-rw-rw-r-- 1 fyicenter 4341 Apr  1 23:01 configtx.yaml
-rw-rw-r-- 1 fyicenter 1157 Apr  1 23:01 connection.json
-rw-rw-r-- 1 fyicenter  710 Apr  1 23:01 connection.yaml
drwxrwxr-x 4 fyicenter 4096 Apr  1 23:01 crypto-config
-rw-rw-r-- 1 fyicenter 3555 Apr  1 23:01 crypto-config.yaml
-rw-rw-r-- 1 fyicenter 4772 Apr  1 23:01 docker-compose.yml
-rwxrwxr-x 1 fyicenter 1213 Apr  1 23:01 generate.sh
-rwxrwxr-x 1 fyicenter  277 Apr  1 23:01 init.sh
-rwxrwxr-x 1 fyicenter 1116 Apr  1 23:01 start.sh
-rwxrwxr-x 1 fyicenter  258 Apr  1 23:01 stop.sh
-rwxrwxr-x 1 fyicenter  468 Apr  1 23:01 teardown.sh

2. View the REAME.md file to see some instructions provided in basic-network:

$ more basic-network/README.md
## Basic Network Config

Note that this basic configuration uses pre-generated certificates and
key material, and also has predefined transactions to initialize a
channel named "mychannel".

To regenerate this material, simply run ``generate.sh``.

To start the network, run ``start.sh``.

To stop it, run ``stop.sh``

To completely remove all incriminating evidence of the network
on your system, run ``teardown.sh``.
...

For download and install "Samples, Binaries and Docker Images", please see previouse tutorials or hyperledger-fabric.readthedocs.io/en/release-1.4/install.html Website.

 

start.sh - Start basic-network

basic-network Sample Network

basic-network Sample Network

⇑⇑ Hyperledger Tutorials

2020-04-25, 424👍, 0💬