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

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

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`.