Based on node+grpc+typescript boilerplate from here! https://github.com/CatsMiaow/node-grpc-typescript
Node.js gRPC structure with google.protobuf for TypeScript example
- This example uses ts-proto as the TypeScript plugin.
- For an example using the grpc_tools_node_protoc_ts plugin, see the following branch source.
npm ci
npm run build # *.proto, *.ts
npm run lint
npm start #= node dist/server
npm run client #= node dist/client
python3 -m http.server 8080
now make a request to localhost:8800 and it will be proxied over gRPC to the Server
which will try and forward the request to port 8080. It will return the response
back via gRPC and to the client, and ultimately to whoever initiated the request
against client's http server on port 8800
.