node-grpc-typescript:用于TypeScript示例的Node.js gRPC结构

时间:2021-05-08 22:05:10
【文件属性】:
文件名称:node-grpc-typescript:用于TypeScript示例的Node.js gRPC结构
文件大小:69KB
文件格式:ZIP
更新时间:2021-05-08 22:05:10
nodejs node typescript grpc google-protobuf node-grpc-typescript 用于TypeScript示例的Node.js gRPC结构 安装 npm i 建造 npm run build:proto # *.proto npm run build # *.ts 服务器启动 node dist/server # OR npm start 客户测试 # 1. Request npm run client # = node dist/client # 2. with Parameter npm run client blahblahblah # 3. Error npm run client error # 4. Stream npm run client stream # 5. Health Check npm run health 文献资料
【文件预览】:
node-grpc-typescript-master
----.eslintrc(880B)
----models()
--------.gitignore(37B)
----bin()
--------proto.js(989B)
----package.json(1KB)
----.prettierrc(208B)
----LICENSE(1KB)
----package-lock.json(216KB)
----src()
--------clientService.ts(883B)
--------server.ts(1KB)
--------health.ts(941B)
--------services()
--------utils()
--------client.ts(4KB)
----tsconfig.json(598B)
----.gitignore(1KB)
----typings()
--------tslint.json(55B)
--------global.d.ts(98B)
----protos()
--------helloworld.proto(1KB)
--------health.proto(473B)
----README.md(723B)
----.eslintignore(37B)
----.gitattributes(146B)

网友评论