I am including a demo of grpcnode in it's own repo, now.
Here is the old readme:
Full demo of my nodejs CLI tools for grpc
It's meant to show to use all the CLI tools, with no code other than your endpoint implementation.
npm install
- to install dependenciesnpm run grpc
- to start gRPC servernpm run gateway
- start gatewaynpm run ls
- list defined interfacenpm test
- run a gRPC client test
If you'd like to play with it, in a full protobuf compiler, I recommend protoc & lint plugin (at the very least) for checking your syntax.
On Mac:
brew install go protobuf
go get github.com/ckaznocha/protoc-gen-lint
protoc --plugin=$HOME/go/bin/protoc-gen-lint --lint_out=. -I ./proto/ ./proto/api.proto
There are lots of other protoc plugins available for generating code from your proto definition, and you can even use my library to make your own in node.