This is an example of a gRPC service call from a react client.
- Front is running on
3000and calls Envoy proxy on8000 - Envoy on port
8000calls grpc service on50051
How to clone the repo & run it:
git clone https://github.com/BenhurKulzer/gRPC.git
cd gRPC
docker compose build
docker compose up
Then, in your favorite browser, open http://localhost:3000 (The front is using gRPC-web to call Envoy).
Enter a name in the input and you should see:
Hello {your_name}!
This project was builted using create-react-app (CRA) and gRPC-web & grpc. Proto files will be generated using the command founded in:
./proto-gen-grpc-web.sh
