|
|
10 年之前 | |
|---|---|---|
| .. | ||
| route_guide | 10 年之前 | |
| .gitignore | 10 年之前 | |
| README.md | 10 年之前 | |
| greeter_client.js | 10 年之前 | |
| greeter_server.js | 10 年之前 | |
| helloworld.proto | 10 年之前 | |
| package.json | 10 年之前 | |
This requires Node 10.x or greater.
npm install to install dependencies
grpc is not found, clone the gRPC repository and run npm install path/to/grpc/src/node.Run the server
$ # from this directory
$ nodejs ./greeter_server.js &
Run the client
$ # from this directory
$ nodejs ./greeter_client.js
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.