hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.81k stars 3.4k forks source link

HyperledgerFabric using javascript #1162

Closed bipul-ch-tiwari closed 10 months ago

bipul-ch-tiwari commented 10 months ago

I have 2 project one with normal Javascript student regeneration page and other one is hyperledger fabric Javascript project.  I have one ui student regeneration page in Javascript and when I click on submit button then I want to call my hyperledger fabric fabcar CreateCar method using restApi  How can I do this please guide sir and i am using this fabric version :- curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.14 ./startFabric.sh javascript

satota2 commented 10 months ago

Hi @bipul-ch-tiwari While it's not raw JavaScript, here's a REST API example using TypeScript that you might find helpful: https://github.com/hyperledger/fabric-samples/tree/main/asset-transfer-basic/rest-api-typescript

Additionally, rather than using v2.2, I recommend using the newer Long Term Support (LTS) version, v2.5 series. (Please note that the above example uses the Fabric Gateway, which is supported from v2.4 onwards.)