如何将前端 (Angular) 与本地 hyperledger fabric fabcar 示例 v2.2 的后端连接?

How to connect frontend (Angular) with backend of a local hyperledger fabric fabcar sample v2.2?

我真的希望得到一些帮助,因为我在这些方面没有太多经验。

基本上,它是关于使用新 hyperledger fabric 版本 2.2.1fabcar 示例的前端和后端的简单本地连接.

我安装了所有先决条件并安装了示例、二进制文件和 docker 图像。

如果我在终端 /fabric-samples/fabcar 内启动 startFabric.sh 然后 运行 /fabric-samples/fabcar/go 中的脚本使用 go 运行 fabcar.go,我得到了例如QueryAll 的结果。

我现在的问题是,如何获得在终端中显示给我的这些结果,简单地映射到本地 UI (Angular)?

我找到了一些针对旧版本或其他工具(如 chainstack)的教程。有人可以给我 分步指南 或适合初学者的 教程 吗?因为我没有太多经验,例如 nodejs express 服务器、REST API、Socket.io 或 Hyperledger Node SDK。

您需要创建 API 来连接 Hyperledger Fabric 网络并执行操作。 Hyperledger 提供了一个 SDK for Node for this purpose which helps to create REST APIs and it can be used in any front end application. There is also a SDK for JAVA.

这是来自 KC Tam 的 link,可以帮助您轻松完成,如果您需要任何进一步的帮助,请告诉我,祝您好运。