KaKeimei / node-grpc-typescript

Node.js gRPC Structure for TypeScript Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-grpc-typescript

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

Installation

npm i

Build

npm run build:proto # *.proto
npm run build # *.ts

Server Start

node dist/server
# OR
npm start

Client Test

# 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

About

Node.js gRPC Structure for TypeScript Example

License:MIT License


Languages

Language:TypeScript 91.7%Language:JavaScript 8.3%