Is it possible to deploy an already working ERP on Hyperledger fabric? - hyperledger-fabric

Is it possible to deploy my already working ERP (with slight modifications if needed) on Hyperledger fabric, or do i need to develop a new ERP for hyperledger fabric?
If someone could guide me of the pathway, it will be very much appreciated.
Note: It is a private application and needs to remain private and with very limited access.

Yes, you can develop a sample POC to get/set data from already existing/ running ERP application. You can go through the link https://hyperledger-fabric.readthedocs.io/en/latest/ to get a good picture of how can you design your application.

Related

How to connect Hyperledger Fabric with the frontend?

I wanted to build an application using Hyperledger Fabric where user first register/login himself and after logging in one can view its profile(which basically display the data he entered while registering and all the transaction he did).
I couldn't understand how to make the frontend part and connect Hyperledger with it.
The login could be done with the help of the article; Deep-Dive into FabCar: A Complete Application Example on Hyperledger Fabric. But how to connect it with frontend. 'yo' command can be used to build frontend but then, how can one modify it, so that it looks according to the need.
Connecting a front-end to your Hyperledger Fabric network is like connecting any front-end layer to the back end. In Hyperledger Fabric 1.4, the submitTranasaction - API is the last layer before interacting with the smart contract. So your front-end will have to take front-end inputs/arguments from the user, and pass them to submitTransaction, along with the associated smart contract function.
I have an example of doing so outlined here - note that the networkObj in this case contains the current channel, and the current smart contract we are running, and then we pass in the arguments to the contract.submitTransaction function.
Hopefully this helps. If you are still stuck, look at the code that I posted in the second link, and try and understand the server-side components. I've used Vue.js in my example, but you can use anything for your front-end framework.
One on the best practice to make use of the Hyperledger Fabric Network is to create a web service to interact with the Fabric network and the front end will interact with the web service.
front-end <--> web service <--> Fabric network
For creating a web service there is already a boiler plate template to get you started in NestJs. the link to the code is.
https://github.com/wearetheledger/hyperledger-typescript-boilerplate
For building the fabric network you can make use of an extension in VSCode called
IBM Blockchain Platform.

How to configure the multi-user mode of hyperledger composer with the front-end of application?

I am working on a hyperledger composer project and facing issues while woking on the front-end development.
While working on composer playground, we are able to create different identities and perform transactions from different identities. But when we start the composer-rest-server and the angular application of the same we fail to see it.
I want to achive those featues in my application too. I read about the multi-user mode of composer-rest-server and how authentication can be used alongwith to provided identities on the basis of it.
But, I am still confused as to how all this works and how is it integrated ?
I am following this but not being able to get a clear idea: https://hyperledger.github.io/composer/latest/tutorials/google_oauth2_rest

Where to start with Hyperledger Fabric Development?

I am pretty new to Hyperledger fabric and try to understand what all topics I need to learn so that I am able to create one full application.
Like for Ethereum , I followed below steps.
1. Setup Ethereum development environment.
2. Used the solidity language to develop the smart contract and used remix as beginner to create smart contract.
3. Use of Truffle Framework for development, testing etc.
4. deploy the smart contract to blockchain either from remix or using truffle framework.
5. Use Web3 to access that smart contract function deployed on blockchain from front end.
Please help me with me similar steps for Hyperledger Fabric.
I heard about lot of terms like composer, modeling language, ACL, Scripts files under that. I also heard about Go language and SDK there.
My understanding is that, first of all Hyperledger Fabric need to be setup on the local system that I am able to do and next step is do the development of DAPP.
One option to that development is by using Hyperledger composer but I dont see use of Go language there. So I wanted to know if composer if the only option to do the development or we have any other way.
Hyperledger Composer is a tool, that simplifies application development on top of the Hyperledger Fabric blockchain infrastructure.
If you are interested in the blockchain infrastructure, start with the Fabric tutorials.
If you are interested in blockchain applications, start with the Composer tutorials.
The Fabric tutorials includes the development in to way:
You can use either Go language to write chain code or you can use composer language.
You can try both.
There is also Fabric Java SDK available for building Java client applications that interact with the blockchain.
I advise you at first to deploy a first hyperledger network in localhost (use docker-compose). You can help yourself with the fabric-sample https://github.com/hyperledger/fabric-samples.
You must understand the mechanisms of transactions (proposal, endorsement etc.) the roles of each component.
After that learning to deploy a chaincode, learn the development of GO chaincodes linked to hyperledger fabric.
Then you can approach the hyperledger SDK (NodeJS or Java).
Start with Hyperledger Composer, its a hyperledger fabric building tool: (https://hyperledger.github.io/composer/latest/introduction/introduction.html)
Composer allows you to experiment and play around with Hyperledger Fabric Blockchain through an online web interface. No need to jump into core building blocks when using Composer. The language used is mostly javascript / yml based so its easy to pick up.
Next step is to work directly with Hyperledger Fabric. But by the time you would have gone through Composer that will be your decision.
About the languages used, Hyperledger Fabric blockchain can be setup using GO, Node or Java.
as a start you can try hyperledger composer which is tool made to accelerate the implementation of your blockchain application smart contracts, ACL to your participant so to understand whats going on pleas follow the documentation in the following link
and you will find this online composer playground very helpful to get your hands on implementation and test your application flow then you can export your application file as .bna file and deploy it on your hyperledger fabric framework.
after that you have to install the prerequisites for hyperledger localy which you can find in the following link
after that you have to decide the type of fabric your going to use will it be single organization fabric which will use solo messaging server to handle synchronization between order peer and your peer.However, you can use multi organization fabric to be your framework which rely upon kafka and zookeeper to manage state between your multi orders and deploy your application.However, you can find node fabric SDK to manage your hyperledger fabric.

Blockchain based Identity Management System

I want to start Identity management system using hyperledger but don't know how to take a start,either from hyperledger-composer or hyplerledger-fabric.
If you are going to achieve this with Composer you should work through the tutorials to gain some background information, then look at the various sample models in Composer, and the sample applications.
For Fabric there are tutorials for background information.
There are also many links on youtube.
Check out Hyperledger Indy for identity related blockchain implementation.

How to develop sharepoint applications using office ui fabric?

I would like to use Office UI Fabric controls in my custom application which is on SharePoint Online.
I would like to use the panels used in Office 365 admin center.
Please advise, thanks.
sorry for the delay. Fabric team member here. What specifically would you like help with in terms of using Office UI Fabric? And, what kind of applications are you developing? Web parts, Graph-connected apps, or something else?
To start, you can check out full documentation on Fabric's website. There are samples for how to use each of Fabric's components in a React.js app, including the Panel. Let me know if you have any other questions!

Resources