@usepreflight/simple-grpc

1.0.0 • Public • Published

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"
    > }
    

Readme

Keywords

none

Package Sidebar

Install

npm i @usepreflight/simple-grpc

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

2.57 kB

Total Files

5

Last publish

Collaborators

  • sashank-qqbot
  • drob