Deploying your First Network

Download the Example Files

Starting from an appropriate directory,
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.2.0
cd fabric-samples/
cd bin

Deploy the Example

This folder contains some example launch scripts:

BYFN.shBuild Your First Network

Let’s try running it:
cd first-network/
./byfn.sh -h
./byfn.sh generate

Now that we have the network up and running, let’s see what files were generated.

Note: If the dependency installs aren’t set properly then you’ll need to spin down the network, verify all dependencies, and then spin up the network again
ls channel-artifacts
ls crypto-config

There are a few commands available from the network launch script.
./byfn.sh up // Turns on the network
./byfn.sh down // Shuts down the network
./byfn.sh generate // Generates a new network

Once the install is complete, you’ll see a nice ascii art printout of the word END, which means everything worked!