Hello gRPC-Web
What you know
What I did to know an overview of gRPC-Web is trying helloworld example and grpcurl on macbook.You can follow details in the offical repsository. I left some stuffs.
I learned
- protocol buffers
- gRPC Service with NodeJS
- Envoy proxy
- protobuf message classes
- A static library easy to loaded by browser
- Accessing gRPC service with grpcurl
I illustrate a diagram.
What you should care if you use mac/windows
First, You remove --netwrok=host
when you run envoy.
# without --network=host
$ docker run -d -p 8080:8080 -p 9901:9901 helloworld/envoy
Second, Use host.docker.internal
as address of envoy yaml.
|
|
Result with developer console
You just open browser and developer console. You can see relusts.
Result with grpcurl
You should use 2 options which are -plaintext
and -proto
when you use grpc becuase this example does not provide TLS and server reflection. As you notice, -d
is used to pass parameters.
|
|