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:
- Host: GitHub
- URL: https://github.com/programmersteve/grpc_practice
- Owner: ProgrammerSteve
- Created: 2025-01-18T05:54:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T06:02:32.000Z (about 1 year ago)
- Last Synced: 2025-01-21T07:18:35.221Z (about 1 year ago)
- Topics: grpc, javascript, nodejs, protobuf3, typescript
- Language: TypeScript
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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