Skip to content

talalzone/minifabric

 
 

Repository files navigation

Minifabric

Build Status

中文

If you like to learn Hyperledger Fabric or develop your smart contract, or just want to get a feel about Hyperledger Fabric, Minifabric is the tool to get you started. Minifabric can stand up a Fabric network on a small machine like a VirtualBox VM but also can deploy Fabric networks cross multiple production grade servers. Minifabric has been tested on Linux, OS X, Windows 10 and supports Fabric releases 1.4.1 or newer.

Feature Highlight

Minifabric is small but it allows you to experience the full capabilities of Hyperledger Fabric.

  • Fabric network setup and expansion such as adding new organizations
  • channel query, create, join, channel update
  • chaincode install, approve, instantiation, invoke, query and private data collection
  • ledger height and block query
  • node monitoring, health check and discovery

Prerequisites

docker (18.03 or newer) environment

Getting Started

If you like to learn more before jumping in, Watch the series of 6 videos on how to develop Hyperledger Fabric using Minifabric and read the blog. For those impatient, please follow the steps below to start things off.

1. Get the script.

If you are using Linux, OS X, or Windows 10 with WSL2
mkdir -p ~/mywork && cd ~/mywork && curl -o minifab -sL https://tinyurl.com/twrt8zv && chmod +x minifab
If you are using Windows 10 without WSL2 installed
mkdir %userprofile%\mywork & cd %userprofile%\mywork & curl -o minifab.cmd -sL https://tinyurl.com/yb3ouwm3
Make minifab available system wide

Move the minifab (Linux and OS X) or minifab.cmd (Windows) script to a directory which is part of your execution path in your system, this is to make the later operations a bit easier, you will be able to run minifab command anywhere in your system without specify the path to the minifab script.

2. Stand up a fabric network:

minifab up

3. Tear down the fabric network:

minifab down

4. To learn other minifab functions:

minifab

About

Stand up fabric network on a single machine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 39.9%
  • Shell 31.6%
  • Python 17.0%
  • Java 6.3%
  • JavaScript 4.1%
  • Dockerfile 0.6%
  • JSONiq 0.5%