tree: 788e5e3b264b284ae0a9119a3d4668de3f81f53f [path history] [tgz]
  1. .gitignore
  2. greeter_client.js
  3. greeter_server.js
  4. helloworld.proto
  5. package.json
  6. README.md
node/README.md

gRPC Node.js Helloworld

INSTALLATION REQUIREMENTS

This requires Node 10.x or greater.

INSTALL

  • Clone this repository
  • Follow the instructions in INSTALL to install the gRPC C core.
  • Run npm install to install dependencies
    • If grpc is not found, clone the gRPC repository and run npm install path/to/grpc/src/node.

USAGE

  • Run the server

    $ # from this directory
    $ nodejs ./greeter_server.js &
    
  • Run the client

    $ # from this directory
    $ nodejs ./greeter_client.js
    

NOTE

This directory has a copy of helloworld.proto because it currently depends on some Protocol Buffer 2.0 syntax that is deprecated in Protocol Buffer 3.0.