https://github.com/norbjd/envoy-grpc-http-reverse-bridge-filter-example
Showcase of Envoy gRPC HTTP reverse bridge filter
https://github.com/norbjd/envoy-grpc-http-reverse-bridge-filter-example
envoy envoyproxy grpc grpc-js protobuf protobufjs
Last synced: 2 months ago
JSON representation
Showcase of Envoy gRPC HTTP reverse bridge filter
- Host: GitHub
- URL: https://github.com/norbjd/envoy-grpc-http-reverse-bridge-filter-example
- Owner: norbjd
- Created: 2022-03-27T18:00:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T18:06:41.000Z (about 3 years ago)
- Last Synced: 2025-01-21T19:39:47.510Z (4 months ago)
- Topics: envoy, envoyproxy, grpc, grpc-js, protobuf, protobufjs
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Envoy gRPC - HTTP reverse bridge filter minimal working example
## Server + Envoy
Run with:
```shell
docker-compose up
```## Client
### Prepare environment
Must be done only once. Generate JS files from proto and install dependencies. From root folder, run:
```shell
docker run --rm -t \
-v $PWD:/app \
-w /app/client \
node:16.14.2-slim \
sh -c 'npm install -g grpc-tools && \
grpc_tools_node_protoc --js_out=import_style=commonjs,binary:. --grpc_out=grpc_js:. -I /app/ /app/helloworld.proto && \
npm install'
```### Run
From root folder, run:
```shell
docker run --net=host --rm -v $PWD:/app -w /app/client node:16.14.2-slim node client.js
```Or from `client/` folder (`cd client/`), you can run `node client.js`.