Skip to content

Vashkatsi/grpc-web-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-Web Example with Envoy and Docker

This repository shows how to run a Python gRPC service accessible from a browser using gRPC-Web and Envoy.

What's Included

  • 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

Get Started

  1. Clone the repository:
git clone https://github.com/Vashkatsi/grpc-web-api-example.git
cd grpc-web-api-example
  1. Build and run everything:
docker-compose up --build -d
  1. Open the client at http://localhost:8081. Type a name, click "Say Hello," and the gRPC server will respond via Envoy.

About

Example building Web API with gRPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published