Deploy a Hyperledger Fabric Model without command line - hyperledger

I have followed the Hyperledger tutorial which shows you how to deploy a Hyperledger model using the command line. But Is there any other way to deploy a Hyperledger Fabric Model using a rest service (and generate the composer-rest-service), so I can deploy it from a webserver?

You can deploy a business network archive using either the composer CLI command or the AdminConnection JavaScript API:
https://hyperledger.github.io/composer/unstable/jsdoc/module-composer-admin.AdminConnection.html
Once your network is deployed (using either method) the composer-rest-server can connect to it and can generate a REST API automatically.

Related

Configure Kafka ordering service on Hyperledger Fabric network built with Hyperledger Composer

I am writing an application on Angular and I used the following Hyperledger Composer tutorial as a guide:
Hyperledger Composer Developer Tutorial
Everything went great and I got the app running and understood how to interact with the API and make the queries. What I'm facing now is that I need to configure Kafka consensus on my Hyperledger Fabric network. I followed the following tutorial to install my Fabric network and environment:
Hyperledger Composer Development Environment Tutorial
I'm trying to use this for configuring Kafka on my network but directories and files created using the above tutorial are different than the ones described on the following tutorial:
Bringing up a Kafka-based Ordering Service
So my question is, is it possible to configure Kafka-based ordering service on a network built using the Hyperledger Composer tutorials mentioned above? If yes, is there anyone out there who was done it successfully?

Deploy .bna file to docker

I have now finished my business network definition on the docker composer online playground with bluemix but cannot figure out how I can deploy my .bna file that I got to a docker container.
The situation is this. I am working on a project with others developing on Windows machines. I want to deploy the .bna file in a Dockerfile with the composer rest server so that they clone the repo, do a docker run and it works out configured. Can someone please link me an article of how to do that.
Thank you
Thomas
A Composer business network runs as chaincode on hyperledger fabric. The online playground provides a simulation of the composer runtime for you to get started with composer. But your goal will be to develop a business network and deploy it to a real hyperledger fabric environment. Composer website has lots of tutorials but I suggest you look at this one first
https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-single-org
It describes how to deploy a business network to a simple single org hyperledger fabric environment

Default Business Network can be changed on hyperledger Composer Playground installed locally?

I want to use my local hyperledger composer Playground to make transactions to my Business Network created and deployed by Composer commands on my local Fabric.
But Hyperledger Composer Playground deploy only on the network called :
org-acme-biznet
Can I change this and deploy or load into Playground my bussines-network?
This limitation has been removed in version 0.12.0. Please upgrade to v0.12.0 or higher and you can connect to any deployed business network using the new ID Card feature.
Video here:
https://www.youtube.com/watch?v=VTX-9VyO6OU

Hyperledger Fabric/Hyperledger Composer

I have created business network file using composer but when i tried to deployed to fabric 1.0 ,its giving error because I already running another fabric 1.0 in my machine using docker.
Could you please help me to deploy two fabric network on single machine so i can run my composer applications too,
Thanks
Kamlesh
This is a Fabric question, related to how to run multiple instances of Fabric on the same machine and has nothing to do with Composer.

How to deploy hyperledger fabric on a network and run hyperledger composer on it?

I'm still a beginner and am working on a project. I have done the getting started from the fabric docs but I don't know how exactly I am supposed to deploy it to a network so that it runs on multiple peers.
After creating the fabric, I want to deploy a hyperledger composer model on it. I've completed the dev guide from the composer docs. So, I wanted to ask whether the process would be any different from deploying to a fabric with a single peer.
If you have followed the Composer Developer Tutorial:
https://hyperledger.github.io/composer/tutorials/developer-guide.html
The you have installed a Fabric (currently at v0.8), created a Composer business network definition and deployed it to a channel on your Fabric development instance.
The process from a development perspective is identical, regardless of how many peers you have.

Resources