/grpc-ts-boilerplate

A boilerplate setup for a grpc server/client with protobuf code generation to typescript

Primary LanguageTypeScript

Node gRPC client/server w/ typescript

Uses @bufbuild/buf under the hood to generate the protobuf definitions in javascript/typescript.

PREREQUISITES

  • node: This requires Node v16.15.x or greater.

INSTALL

$ ./setup

BUILD

Generates the protobuf definitions and compiles javascript code to typescript

$ ./build

TRY IT!

  • Run the server

    $ ./server
  • Run the client

    $ ./client