• Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Node.js gRPC Structure for TypeScript example

node-grpc-typescript

Node.js gRPC structure with google.protobuf for TypeScript example

Installation

npm ci

Build

# exports to *.proto to *.ts
npm run build
npm run lint

Server Start

npm start #= node dist/server

Client Test

Start the server before testing client commands.

# 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

Documentation