grpc/examples/node
Craig Tiller 897e4fe2ad Update copyrights 2015-12-22 15:03:40 -08:00
..
route_guide Update copyrights 2015-12-22 15:03:40 -08:00
.gitignore move examples to correct locations 2015-08-27 14:00:20 -07:00
README.md Small typo of NodeJS version in README.md 2015-11-16 04:55:07 +07:00
greeter_client.js fix node example 2015-10-24 16:45:04 -04:00
greeter_server.js Updated examples with new node package location 2015-10-01 11:54:39 -07:00
helloworld.proto move examples to correct locations 2015-08-27 14:00:20 -07:00

README.md

gRPC in 3 minutes (Node.js)

PREREQUISITES

  • node: This requires Node 0.10.x or greater.
  • homebrew on Mac OS X. This simplifies the installation of the gRPC C core.

INSTALL

  • Install gRPC Node

  • Install this package's dependencies

    $ cd examples/node
    $ npm install
    

TRY IT!

  • Run the server

    $ # from this directory (grpc_common/node).
    $ node ./greeter_server.js &
    
  • Run the client

    $ # from this directory
    $ node ./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.

TUTORIAL

You can find a more detailed tutorial in gRPC Basics: Node.js