Hyperledger Fabric blockchain network from scratch - hyperledger-fabric

I've been studying the Hyperledger Fabric framework reading the docs for quite a while now but I'm getting a little lost in the middle of all that info. My question is: Is there any guidelines/"Step by step" on how to design a blockchain network from scratch? If you are starting a new project, where do you start?
Because I think I would understand it way more quicker if I actually started coding a little instead of reading and reading and reading...
Thanks a lot!
Edit 1:
I've chosen #kekomal answer as the correct one but I'd like to thank #Isha Padalia for the awesome VS Code extension and tutorial.

If you are really interested in learning and diving into Hyperledger Fabric, avoid byfn script. It performs a lot of magic for building a very simple Hyperledger Fabric network. After that, you have a network that you don't know how has been created and you have absolutely no idea of how to start deploying your custom network. There are daily questions here from people who started that way and are absolutely lost.
I find interesting this tutorial: https://medium.com/beyondi/setup-the-hyperledger-fabric-network-from-scratch-b82913b47549. Take into account that it is a little bit outdated.
You can complement it with this newer tutorial: https://www.blockchainexpert.uk/blog/how-to-deploy-hyperledger-fabric-network-from-scratch. Don't only run the steps. Analyze the files in https://github.com/blockchain-expert/hyperledger-fabric-network-from-scratch. Try playing with configtx.yaml, crypto-config.yaml and docker-compose files to customize your network and understand what you are doing.
Customize your organizations, your consortiums, your ordering service, your peers... Create your channels, join them, update your anchor peers... And understand what you are doing.
After that, if your network had one orderer, deploy a new one with more than one (with Raft consensus). If your network was using cryptogen, deploy a new one using Fabric-CAs instead. Or you can follow by playing with chaincodes.
NOTE: Apart from Hyperledger Fabric itself, it is essential to have basic notions of docker and PKI.

You are a beginner in Hypelredger fabric development then you have first cleared the concept of the orderer, peer, CA, and organization concept. And then first you have to start IBM Blockchain Platform VS Code extension for fabric. It will provide a local fabric environment to create, test and deploy a fabric smart contract. Also generate 1 peer, 1 orderer, 1 CA service under VS code environment.
Here is a link to start development with VS code extension.
Hope it will help you:)

hi #d3v9 start from here https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html. also you can find some great article on medium

Related

How hyperledger fabric works in private block chains?

I am new to block chain and learning from past few weeks about block chain but until now I have many times heard about hyper ledger fabric but never found a good documentation for a begginer.
As previously answered, the official documentation is quite good and it will definitely be helpful for a beginner. I have used this documentation to create and run blockchain networks on MacBooks and laptops running on Ubuntu. I have no experience of running Hyperledger on a Windows machine. If you have a Windows machine, create a dual boot so that you can use Ubuntu for your Hyperledger work.
Use the tutorials provided as part of the Hyperledger download. They do work as long as all of the pre-requisites are satisified. The test-network tutorial is quite good as it starts you off with building a 2-peer network.
If you use Visual Studio Code, there is an IBM extension that you can use as well. I'm not sure if it has advanced beyond version 1.4 yet, but it will help you to get a single peer network up and running quickly so that you can concentrate on perhaps developing some contract code. YouTube is a great source for Hyperledger tutorial videos which should be quite helpful.
Best of luck.

Does anyone know the instructions for building a hyperledger fabric network from scratch step by step?

I'm a novice in fabric development and I am at the beginning of the road. I could not find a suitable integrated tutorial from the base, so i follow hyperledger fabric from latest version documents. From Here I understood a number of concepts such as working with the test network, the commercial paper network, how to work with and develop smart contracts and ... . But I'm a little confused. The fabric document is not coherent and step by step and I could not figure out how to write my target network from scratch (like config my own network, write yaml file and scripts), so does anyone know the instructions for building a hyperledger fabric network from scratch step by step?

Hyperledger Fabric: Where to find a production quality sample?

we are wondering where can we find a production quality sample for HL Fabric? we have studied the samples included with official release and have found that:
the balance-transfer sample shows how to write a HL Fabric app and make transactions and queries on the chaincode but uses the cryptogen tool which is not recommended for use in production
The fabric-ca app on the other hand shows how to spin up a network without using cryptogen but does not show how to write an app that can then be used to do transactions, make queries, enroll new users and so on
So we are looking for a sample that combines the best of above two apps. Does such a sample exist? Writing an app to get the benefits of both turned out to be harder than we thought e.g., fabric-ca sample does not output any network-config which is needed by balance-transfer and we are facing difficulty figuring out what the network-config should look like in this case. Also we see conflicting code between node and typescript in balance-transfer (although both are javascript) etc.
In the latest master of Hyperledger Fabric, there is a new and much more detailed sample--the commercial paper.
The tutorial covers the whole lifecycle of a chaincode.

Hyperledger-Composer. Modify the ledger via remote access

So far I have followed the hyperledger developer tutorial, but I have a couple of questions basically the same I pressume. Let us assume that I have running my application as stated in the developer tutorial in machine A.
The first question is: How can I modify the ledger in machine A from B when they are in the same network?.
The second is: How can I modify the ledger in machine A from B when they are in different networks?.
The Composer Developer tutorial (and in fact all of the Compose tutorials) focus on the Composer aspects of developing and deploying a Business Network. They do not focus much on the Fabric issues of multi-org and multi machine. The Developer tutorial uses a very simple development Fabric of 1 Peer in 1 Organisation, and some automated scripts set this up for the developer to concentrate on the Model and the code.
For background on Hyperledger Fabric and experimentation with multi peer, multi org Fabrics I would suggest looking at the Fabric tutorials.
To get more of a view of Multi-Org from a Composer perspective I would suggest looking at the Composer Multi-Org Tutorial.
Be aware that the above 2 references simulate multi-org Fabrics, but actually run on a single machine for simplicity. There are other tutorials and blogs available in various places for running on multi-machine configurations e.g. https://www.skcript.com/svr/setting-up-a-blockchain-business-network-with-hyperledger-fabric-and-composer-running-in-multiple-physical-machine/

What does Hyperledger composer do .Does that create chaincode for fabric or something else?

I have been working on hyperledger fabric for some time. But I don’t understand where hyperledger composer comes in place . I do understand that it helps in visualizing the logic and transaction. But what I don’t get is how do you integrate it with fabric network? what does it create? Is it chaincode if not then what?
The Compose runtime is chain code that executes the business network archive artefacts created by the end-user.
Perhaps this will help?
https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/
The tech answer is that Hyperledger Composer is an abstraction layer over Hyperledger Fabric.
The practical answer is that it is awesome. Think how Angular and hundreds of other frameworks make web programming easier.
It is a framework where you can write your blockchain in Javascript and specify your data objects in an easy to understand text file. Throw in some querying, ACL stuff and pathways to use some nice opensource tools that let you do things like generate a Web API automatically and play around in a web environment without installing anything.
We are using it for the Integra Ledger Legal blockchain. (www.integraledger.com). I just spent the day working in it.

Resources