An open API service indexing awesome lists of open source software.

https://github.com/yo-mah-ya/grpc-typescript

gRPC example written in TypeScript
https://github.com/yo-mah-ya/grpc-typescript

grpc grpc-client grpc-server grpc-typescript protobuf protobuf3 typescript

Last synced: about 1 year ago
JSON representation

gRPC example written in TypeScript

Awesome Lists containing this project

README

          

# gRPC example written in TypeScript

Using this below library, which is pure TypeScript supporting
https://github.com/thesayyn/protoc-gen-ts/tree/main

1. Generate TypeScript codes from `.proto` files

```sh
./codegen.sh
```

2. transpile TypeScript to JavaScript

```sh
yarn build
```

3. execute

terminal 1

```sh
node build/src/server.js
```

another terminal

```sh
node build/src/client.js
```