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

https://github.com/kevinmichaelchen/some-protos-ts-example

protobufs + ts-proto + typescript + nice-grpc
https://github.com/kevinmichaelchen/some-protos-ts-example

nice-grpc protobufs protos ts ts-proto typescript

Last synced: about 1 month ago
JSON representation

protobufs + ts-proto + typescript + nice-grpc

Awesome Lists containing this project

README

          

# some-protos-ts-example



A small demo using [**nice-grpc**](https://github.com/deeplay-io/nice-grpc) and
Typescript protos generated with [**ts-proto**](https://github.com/stephenh/ts-proto).

The ts-proto options we're using are specified in another repo,
[some-protos-ts](https://github.com/kevinmichaelchen/some-protos-ts/blob/main/buf.gen.yaml).

The code where we're instantiating the gRPC channel and client, and performing
the call, can be found in [sayHello.ts](src/sayHello.ts).

### Running
```
yarn && yarn start
```

It depends on [@kevinmichaelchen/some-protos-ts](https://github.com/kevinmichaelchen/some-protos-ts)
```
yarn add @kevinmichaelchen/some-protos-ts
```