hyperledger composer sample networks not available - hyperledger

Facing issues in fetching the sample Networks in Hyperledger composer playground editor. Am trying to create a sample network using the sample networks which was available in hyperledger composer online editor https://composer-playground.mybluemix.net/editor.enter image description here Attaching the error screenshots as well.enter image description here

This is currently due to a problem with failing searches on the npm registry. a fix is available in meantime on composer-playground unstable
Hosted here: https://composer-playground-unstable.mybluemix.net/
Or for local install with npm:
npm install --global composer-playground#unstable

Issue is resolved automatically. I guess it was due to some site mainatainence.

By default composer playground does not lauch the sample network. Can you click the card where it's written Deploy your new business network then composer play ground will launch the sample.

Related

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

Hyperledger Composer - How can I check chaincode after deploying a network

I am new to Hyperledger, what i did yesterday is installed Oracle virtual box on my windows 10, followed by Ubuntu, followed by Composer prerequisites including Docker Engine, Compose and everything else. Finally followed the composer playground tutorial and deployed the network.
What i am not able to understand in the end is -
1. where the chaincode is and how can i query that and modify directly, if needed?
2. Go lang was a pre requisite to setup Hyperledger Fabric, but for Hyperledger Composer, it was not mandatory, I am still confused if Hyperledger Fabric (the real blockchain) is also setup on my machine or it is just some simulated environment something?
thanks in advance for your answers.
I've been investigating Hyperledger Fabric composer myself too, hope this answers your questions:
Hyperledger composer is built ontop of the Hyperledger Fabric framework.
When developing with composer you are not producing chaincode, in essence, hyperledger composer is some very smart chaincode that can read and comprehend the model + transaction files. Composer is NOT a compiler, it does not take the business network definition files and produce chain code.
Again, as you are not producing chaincode Go is not required for development. Hyperledger fabric is indeed setup on your machine. It is a real Fabric on which composer is built upon.
Hope that helps, I'm happy to clarify anything further if you need.
When you installed the dev environment for Hyperledger Composer, you installed (in VirtualBox) a HyperLedgerFabric V1 network with multiple nodes. So, yes, you do have a 'real' blockchain set up on your system. The transaction code that you write in JavaScript is your chaincode. HyperLedger Composer uses (today) a service called DukTape to enable your javascript-written transactions to run in the Go chaincode environment.
The chaincode in the default installation is in the lib folder inside the network folder. The file, in the default installation is sample.js, which is directly associated with the sample.cto file in your network\models folder. The cto file defines your assets, events and transactions using an Object-Oriented class kind of notation. The class name for a transaction is identical to the function name in the sample.js file.

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.

fabric composer on Windows machine

I tried setting up playground using
https://fabric-composer.github.io/tutorials/getting-started-playground.html
I followed the docker steps everything started OK, was able to access Fabric Composer Playground by clicking on this link: http://localhost:8080
But now what??? I tried to upload a sample model file but it shows error.
How do I try this out. Do I have install Ubuntu on my windows machine to really be able to try out fabric composer?? Pleas help
You can install and run the fabric composer locally on linux only. For that you can use VMWare and install ubuntu on it.
And then follow the installation steps here.
If you don't want to do so, then alternatively you can use the online composer playground and can export(download) your .bna file whenever you want.
Hope this helps you!

Resources