An open API service indexing awesome lists of open source software.

https://github.com/konsumer/grpc-demo

Full demo of my nodejs CLI tools for grpc
https://github.com/konsumer/grpc-demo

Last synced: about 1 year ago
JSON representation

Full demo of my nodejs CLI tools for grpc

Awesome Lists containing this project

README

          

# DEPRACTED

I am including a [demo of grpcnode in it's own repo, now](https://github.com/konsumer/grpcnode/tree/master/example).

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](https://www.npmjs.com/package/protoc-plugin) to make your own in node.