lmc1913
lmc1913

Reputation: 71

Hyperledger Fabric: how to make frontend?

I have already done the network part ,and can successfully register admins and enroll users basically following the fabcar example. But I would like to make a blockchain web app, what are the steps to make the front end?

Upvotes: 1

Views: 2730

Answers (1)

nagesh bandaru
nagesh bandaru

Reputation: 76

Couple of things we need to do to prepare for the WebApp which interact with Blockchain Fabric.

  1. In FabCare we would be seeing the request and response though docker cli. but in real time everything should be through REST API model, for this we are going to use the Node SDK.

  2. You need to try 'Balance Transfer' example, which is having node SDK and you can run curl request (REST) and get response in JSON. -- all instructions are there in Readme. follow this link https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer

  3. Once you are good with Curl Request, you can just pass those request from any front end and get the data to show in the front end.

I have created an Angular UI to interact with fabric backend and i have used the complete balance transfer example.

Angular Git: https://github.com/hyperledger/fabric-samples/tree/release/balance-transfer

  1. Once you familiar with basic things usage, then you can slowly explore chain code, NOde SDK etc..

Hope, this helps you.

Upvotes: 2

Related Questions