Deploy API REST IBM Hyperledger Composer Blockchain
how to build a blockchain network using hyperledger fabric and composer
hyperledger composer start
hyperledger composer application
ibm hyperledger tutorial
hyperledger composer login
hyperledger api tutorial
hyperledger composer angular app
I'm developing a POC over IBM HyperLedger Blockchain. I have a business network developed and deployed in IBM Cloud. I can generate a working local API REST, but cannot make it work on cloud, on the deployed IP. I'm following this guide:
You just have to execute the following command:
./create/create_composer-rest-server.sh --business-network-card MY_BIZNET_CARD_NAME
But it doesn't deploy anything, and get the following (more related to kubernetes than blockchain).
Preparing yaml file for create composer-rest-server Creating composer-rest-server pod Running: kubectl create -f /Users/sm/jsblock/ibm-container-service/cs-offerings/scripts/../kube-configs/composer-rest-server.yaml The connection to the server localhost:8080 was refused - did you specify the right host or port? the server doesn't have a resource type "svc" Creating composer-rest-server service Running: kubectl create -f /Users/sm/jsblock/ibm-container-service/cs-offerings/scripts/../kube-configs/composer-rest-server-services-free.yaml The connection to the server localhost:8080 was refused - did you specify the right host or port? Composer rest server created successfully
Any ideas? Thanks too much.
You need to ensure you have a correct kube config setup. Step 10 in https://ibm-blockchain.github.io/setup/ provides the details to set up KUBECONFIG as the error suggests that either it is not configured or not configured correctly.
Deploying sample applications, IBM does not provide support for networks that use Hyperledger Composer in production, including the Composer supports the Hyperledger Fabric runtime and infrastructure, and internally the composer’s APIs utilize the underlying Fabric API. Composer runs on Fabric, meaning the business networks generated by Composer can be deployed to Hyperledger Fabric for execution. Deploy Blockchain-as-a-service Applications with IBM Cloud
The document you refer to https://ibm-blockchain.github.io/interacting/ is being updated and should be available soon.
When you run the command
./create/create_composer-rest-server.sh --business-network-card MY_BIZNET_CARD_NAME - should be the name of the Network Admin for the network you deployed, NOT the PeerAdmin card so it will be something like
./create/create_composer-rest-server.sh --business-network-card admin@perishable-network
Deploy API REST IBM Hyperledger Composer Blockchain , I'm getting this error trying to deploy a card to a working blockchain on cloud, passed to create Here are two next steps: a- Deploying, Testing, and Exporting Business Network Archives Using the Composer Command-Line Interface and b- Interacting with Composer through the RESTful API. This article is written in collaboration with Brian Wu who is a senior Hyperledger instructor at Coding Bootcamps school in Washington DC.
Look like it's an issue of acceess control. You should make sure again you are running with Local Admin configuration.it will help you to run queries
Deploy API REST IBM Hyperledger Composer Blockchain, I'm developing a POC over IBM HyperLedger Blockchain. I have a business network developed and deployed in IBM How to add a new organisation to an existing channel in hyperledger fabric without creating a new node/peer for that organisation. Can we add a organisation which does not contain any nodes?
Deploy API REST IBM Hyperledger Composer Blockchain (bad flag , I'm getting this error trying to deploy a card to a working blockchain on cloud, any idea? Thanks in advance. I'm using a Stack Overflow Public questions and answers; Teams Private questions and answers for your team; Enterprise Private self-hosted questions and answers for your enterprise; Talent Hire technical talent
Deploy a blockchain business network to the cloud using the IBM , Hyperledger Composer exposes a business Generate REST APIs for the deployed sample network. 4. Expose rich queries via a REST API. Now that your business network containing queries is deployed, launch the Composer REST server to expose the queries through a REST API. The Hyperledger Composer REST server generates a bespoke set of REST APIs based on your business network. Start the REST server from the command line with the following
Tutorials, The developer tutorial will walk you through the steps required to build a Hyperledger Composer blockchain solution When deploying the Hyperledger Composer REST server in a production environment, for example using Docker Swarm or Kubernetes, the REST server should be configured to be highly available. This means that you must deploy multiple instances of the REST server, and those instances should be configured to share data.
- That looks like your kube config is not correct and is trying to talk to a non existent kubenetes running on your local machine
- Thanks, you was right. I completed the config proccess again and a new error appeared, but at least I've some movement...
- Thanks, but I'm doing that. Specifying admin@tutorial-network (the sample admin card you create following the IBM/ Hyperledger Composer tutorials).