Implementation
Overview

Prerequisites
The following prerequisites are required to run a Docker-based Fabric test network on your local machine (001-pre-requisites.sh).
Setting up Docker
Install Fabric SDK for NodeJS
The Hyperledger Fabric SDK allows applications to interact with a Fabric blockchain network. It provides a simple API to submit transactions to a ledger or query the contents of a ledger with minimal code.
The client API is published to the npm registry in the fabric-network package.
Install Docker Images, Fabric Tools and Fabric Samples
Clone from Github Hyperledger Fabric Samples.
Run Docker on your machine
Create a project folder and cd into it
Run script:
Now you'll have:
Fabric-samples downloaded
Binary tools installed in /bin
Docker Images downloaded
Create your first Fabric test network
Change into the first-network directory and run the generate script that will create the certificates and keys for the entities that are going to exist on our blockchain.
This will also create the genesis block, the first block on the blockchain, among other things.
Main script: byfn.sh (well documented and worth reading through)
Use this to generate cryptographic and network artifacts, bring up the network & run a sample scenario
Interact with the network
Packages Dependencies for the Backend
Packages Dependencies for the Chaincode
Dev Dependencies for TypeScript
Last updated
Was this helpful?