Node.js gRPC structure with google.protobuf for TypeScript example
- This example uses ts-proto as the TypeScript plugin.
- For an example using the grpc_tools_node_protoc_ts plugin, see the following branch source.
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