fabric-contract-api-go icon indicating copy to clipboard operation
fabric-contract-api-go copied to clipboard

Tutorial out of date

Open baron0426 opened this issue 3 years ago • 7 comments

Hello, I'm currently building a smart contract using go api from scratch and I'm reading this.... https://github.com/hyperledger/fabric-contract-api-go/blob/main/tutorials/getting-started.md It involves a step where I need files from fabric-samples/chaincode-docker-devmode but this folder doesn't exist in the latest fabric-samples. Can someone please tell me the newest way to implement this?

baron0426 avatar Dec 15 '21 09:12 baron0426

Hi @baron0426, thanks for the issue. You should be able to use the Fabric Test Network instead. That's different in that you will need to package and install the chaincode instead of running it yourself. For a similar developer experience, you could try using chaincode as a server, which might the best option for updating the getting started guide when PR hyperledger/fabric-samples#560 gets merged. Hope that helps.

jt-nti avatar Dec 16 '21 16:12 jt-nti

Just as a note: According to https://github.com/hyperledger/fabric-samples/pull/314, the preferred way is to use https://github.com/hyperledger/fabric/blob/main/docs/source/peer-chaincode-devmode.md

However, it requires several adaptions and tweaking of parameters to work.

ionicsolutions avatar Dec 19 '21 21:12 ionicsolutions

Hope to update the tour !

mock123456 avatar Dec 12 '22 05:12 mock123456

thanks @mock123456 - just to clarify - are you saying you yourself would be able to update the tour?

PRs most welcome :-)

mbwhite avatar Dec 12 '22 09:12 mbwhite

Hi @mbwhite based on https://github.com/hyperledger/fabric-samples/pull/314, sample has been removed. The documentation is outdated still. I would like to take this up, can you please suggest if a sample is required or just the README needs to be updated.

shashank-priyadarshi avatar Sep 08 '23 07:09 shashank-priyadarshi

From my perspective, a new sample is not required. Just an update to the tutorial.

The preferred approach to debug and do rapid development of smart contracts is to use chaincode as an external service. The asset-transfer-basic/chaincode-external sample demonstrates this and perhaps could be used if you need to refer to sample code.

The full-stack-asset-transfer-guide sample describes this approach and has a practical walk-through (using Node.js) in probably too much detail for this tutorial. There might be information there you can draw on for a tutorial update though.

If you'd like to work on an update to the tutorial in this repository, I can assign this issue to you.

bestbeforetoday avatar Sep 08 '23 15:09 bestbeforetoday

Yes I would like to take this up.

shashank-priyadarshi avatar Sep 09 '23 06:09 shashank-priyadarshi