chainHero / heroes-service

Short tutorial to build a blockchain application in Go with Hyperledger Fabric
https://chainhero.io/2018/06/tutorial-build-blockchain-app-v1-1-0/
Apache License 2.0
275 stars 147 forks source link

question about config.yaml #25

Open wangmarkqi opened 5 years ago

wangmarkqi commented 5 years ago

Thank you very much, I run heroes-service successfuly. In addition, I split the function into smaller parts for more flexible usage. However, I can not migrate the code to other fabric network with different configration files. Compare to sdk with other language, to init go sdk need config.yaml file which is special because fabric-samples usually give configtx.yaml, crypto-config.yaml and docker-compose.yaml. How can i get config.yaml from these files or how can i generate these files with config.yaml? Is there any automatic way to do it? Thank you very much.

vigneshkm commented 5 years ago

Hi,

I am writing an application with hyperledger-fabric. I want to use fabric-sdk for which I need to write a config file like "config.yaml" used in this application.

But I am not able to find any reference on how to write that file, what parameters to use, how will the parameters in that file be used by sdk instance generated by "fabsdk.New()" etc.

Could you please help me with these information?? You could also share links where I could find these information.

Thanks, Vignesh