Skip to content

konsumer/grpc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRACTED

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.

usage

  • npm install - to install dependencies
  • npm run grpc - to start gRPC server
  • npm run gateway - start gateway
  • npm run ls - list defined interface
  • npm test - run a gRPC client test

protoc

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.

About

Full demo of my nodejs CLI tools for grpc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published