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

https://github.com/programmersteve/grpc_practice

Went over unary, client stream, server stream, bidirectional stream with grpc in node with typescript. Watched these 3 videos:
https://github.com/programmersteve/grpc_practice

grpc javascript nodejs protobuf3 typescript

Last synced: 11 months ago
JSON representation

Went over unary, client stream, server stream, bidirectional stream with grpc in node with typescript. Watched these 3 videos:

Awesome Lists containing this project

README

          

### Setting up
- `mkdir proto`
- `touch ./proto/{{PACKAGE_NAME}}.proto`
- `npm init -y`
- `npm install --save-dev @grpc/grpc-js @grpc/proto-loader typescript ts-node @types/express`
- `npx tsc --init`
- `npm install`

### proto-gen.sh script
- `npx proto-loader-gen-types --grpcLib=@grpc/grpc-js --outDir=proto/ proto/*.proto`

## scripts in package.json
```
"scripts": {
"proto:gen":"./proto-gen.sh",
"start": "ts-node server",
"client": "ts-node client"
},
```

### Watched these 3 videos to code along to
- https://www.youtube.com/watch?v=0cxEVcALoxc
- https://www.youtube.com/watch?v=iq2z7xw8VmE
- https://www.youtube.com/watch?v=ZaogqE95DFQ&t=1s