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
- Host: GitHub
- URL: https://github.com/konsumer/grpc-demo
- Owner: konsumer
- Created: 2017-08-09T18:48:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-16T23:21:13.000Z (about 8 years ago)
- Last Synced: 2025-03-16T07:31:45.852Z (over 1 year ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.