grpc-experiments/node
Tim Emiola f3e73a4871 Updates the Node.js README to match the common template 2015-02-24 04:09:51 -08:00
..
route_guide Added route guide example 2015-02-23 11:08:42 -08:00
.gitignore Added node hello world example 2015-02-19 13:33:04 -08:00
README.md Updates the Node.js README to match the common template 2015-02-24 04:09:51 -08:00
greeter_client.js revert js changes. 2015-02-20 11:35:20 -08:00
greeter_server.js revert js changes. 2015-02-20 11:35:20 -08:00
helloworld.proto change proto README cpp node ruby 2015-02-20 10:50:46 -08:00
package.json Added route guide example 2015-02-23 11:08:42 -08:00

README.md

gRPC in 3 minutes (Node.js)

PREREQUISITES

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.

Try it!

  • 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.