grpc/examples/node
Jan Tattermusch 518e0c199c Merge pull request #5837 from sreecha/grpc_fixit_node
DocFixit: Troubleshooting info for Windows and some minor tweaks
2016-03-24 07:12:34 -07:00
..
route_guide Update Node examples and example documentation 2016-02-12 13:21:49 -08:00
.gitignore move examples to correct locations 2015-08-27 14:00:20 -07:00
README.md DocFixit: Troubleshooting info for Windows and some minor tweaks 2016-03-18 14:44:31 -07:00
greeter_client.js Update Node examples and example documentation 2016-02-12 13:21:49 -08:00
greeter_server.js Update Node examples and example documentation 2016-02-12 13:21:49 -08:00
package.json Add other missing dependencies 2016-03-18 09:12:16 -07:00

README.md

gRPC in 3 minutes (Node.js)

PREREQUISITES

  • node: This requires Node 0.12.x or greater.

INSTALL

$ # Get the gRPC repository
$ export REPO_ROOT=grpc # REPO root can be any directory of your choice
$ git clone https://github.com/grpc/grpc.git $REPO_ROOT
$ cd $REPO_ROOT

$ cd examples/node
$ npm install

TRY IT!

  • Run the server

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

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

TUTORIAL

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