This repository shows how to run a Python gRPC service accessible from a browser using gRPC-Web and Envoy.
- A Python gRPC server implementing a simple service
- An Envoy proxy that translates gRPC-Web requests from the browser into gRPC calls
- A browser client using Webpack to bundle the generated JavaScript stubs and call the gRPC service
- Clone the repository:
git clone https://github.com/Vashkatsi/grpc-web-api-example.git
cd grpc-web-api-example
- Build and run everything:
docker-compose up --build -d
- Open the client at http://localhost:8081. Type a name, click "Say Hello," and the gRPC server will respond via Envoy.