1.0.0 • Published 2 years ago

@usepreflight/simple-grpc v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Local gRPC

Local server that serves a simple gRPC API.

To run outside of docker:

  1. Install grpcurl, if you don't have it.

    brew install grpcurl
  2. Start the server.

    node server.js
  3. Query it.

    grpcurl -plaintext -d '{"message": "yo"}' -import-path . -proto protos/pingpong.proto localhost:50051 PingPong.Ping
    
    > returns
    > {
    >   "message": "Received message: yo"
    > }