I am new to blockchain and trying Playground for my first Blochain application. I followed this tutorial.
As soon as I click "deploy", I get a pop-up on screen saying "error:error trying install business network. Error: The business network is already installed on all the pears.
Any help will be highly appreciated!!
You would be better off not using hyperledger composer, it's been end of life for a long time and no one uses it and so there won't be anyone who will be able to help you or willing to invest any time to help you. I would suggest you look at hyperledger fabric (which hyperledger composer used to require to provide the blockchain capability as hyperledger composer is not a blockchain technology but an application framework).
https://hyperledger-fabric.readthedocs.io/en/latest/
Also this guide may be useful
https://github.com/hyperledger/fabric-samples/tree/main/full-stack-asset-transfer-guide
Related
I'm new to Hyperledger Fabric, I am using Hyperledger Fabric v2.4 and want to get external data via oracle, I was trying to use provable(previosly known as oraclize) but in the Provable doc, it seems to be only support the Hyperledger v1.2, is there any other oracle that support Hyperledger Fabric v2.4?
I have found chainlink, but chainlink's document doesn't seems to mentioned about Hyperledger Fabric. Is chainlink a feasible solution?
Can anyone give me some direction or advice? I will be really appreciate!
I have question about Shopify app development and the deployment process.
I've used the getting started guide here, and I have an app that works fine when I use npm run dev and view the app in the store admin.
However, of course, once I stop the server from running, the app is no longer accessible.
I believe I need to deploy the app to Heroku (or something similar) in order to have it work in a non-development environment.
It doesn't seem like there is much guidance online from Shopify about the best way to go about this.
Does anyone know what steps I need to take in order to deploy my app to Heroku, so that I can use the app in by test store on another device?
It seems like every guide online stops JUST BEFORE explaining this process and I can't figure out why! I have tried everything online but nothing has worked:
Adding the code to Github and connecting it to Heroku
Using Docker
Any help is appreciated. Thank you!
You have zero obligations to use Heroku. If you have an IP address dedicated to your house, you could host the App using your house. If you co-locate your own server at an Internet business, and they give you IP addresses you can use that. If you wanted to use Amazon directly, you could use EC2. If you wanted to use Linode, or Azure, or any other cloud service, feel free! It is up to you!
Using Heroku (built on AWS) is traditional only in the sense that it is the original easy peasy hosting in the cloud service. Play with Heroku by reading Heroku-specific documentation or hosting information. This has nothing to do with Shopify. Shopify only mentions Heroku because traditionally, developers used it. No other reason.
If you want to learn how to use Heroku, 100% there are blog posts within easy reach for you to study and learn from.
I'm new to Blockchain. I heard that blockchain provides individual ledgers for individual participants. I want to know how it will work with Hyperledger Composer Blockchain application.
Hyperledger Composer is built on Hyperledger Fabric - which is a permissioned, distributed, shared ledger.
If you are new to Composer, I would suggest working through the documentation, in particular the tutorials.
More information on Fabric is available in the Fabric documentation.
I have set up composer-rest-server successfully using this link on IBM cloud. I have written custom logic code in GoLang for getting chain code. I don't know how will proceed for next setup for getting chain code. Could you help me by showing me which way I have to proceed?
Chaincode for Hyperledger Composer is written in Javascript not GoLang. (Though Hyperledger Fabric supports both GoLang and Javascript with V1.1).
If you wish to proceed with Composer and Javascript, you could start with the Developer Tutorial, then follow this document for information on Developing Applications.
Update following Comment
There is a Fabric Tutorial "First Application" that uses go for the chaincode.
With regard to IBM cloud, it is possible to use Composer Business Networks, or write direct chaincode for the Fabric with IBM Cloud Starter Plan, and there are examples to "auto" deploy.
I saw that Hyperledger composer is really easy to work with, also we can deploy the composer code on hyperledger fabric. But I found that they create only one channel, and we will have the flexibility to talk to the specific peers like what we can do in GoLang\fabric, can we call external web services from composer java script code as we can do in Golang on fabric?
I'm wondering, can we use hyperledger composer for enterprise blockchain applications? or just we use it to create blockchain POCs.
Regards.
Bassel Kh
Hyperledger Composer is intended to be used for enterprise blockchain applications, although Composer Playground is not intended for Production use.
Composer connects with Fabric using Business Network Cards, and these contain credentials and a Connection Profile. The connection profile contains definitions of the 'services' on the Fabric, and so it is possible to define specific Peers within the card.
Regarding channels - it is again the Connection Profile that determines the Channel used, and at the moment only one channel is supported per Card. Multiple cards can be used but disconnect/switch/re-connect might not be practical or desirable in some cases.
There is a way to connect to a different Business Network on a different Channel covered in this tutorial, but again it might not be suitable for all cases.
There is an outstanding issue on GitHub for using Composer for multi-channel, so you can leave a comment or +1 on it - particularly if you have a good use case for multi-channel.
Many people are thinking of and using channels as a security feature, but Composer ACLs might solve that issue in some cases. Similarly the upcoming sidedb feature in Fabric might offer security instead of separate channels.
yes, you can call external web services and get the results back into your smart contract code or client see -> https://hyperledger.github.io/composer/latest/integrating/call-out
yes Hyperledger Composer is intended for Enterprise blockchain applications. Your applications will use Composer client to write application data to the ledger, and its production runtime is where the 'chaincode' smart contract/business network is deployed/installed on the peers (just like Go chaincode is similarly deployed). One such provider using Composer is here -> https://ibm-blockchain.github.io/platform-deployment/
Finally also see here -> https://github.com/hyperledger/composer-knowledge-wiki/blob/latest/knowledge.md#production for more info.