https://github.com/alextanhongpin/node-grpc-mongo
A sample GRPC with node and mongo
https://github.com/alextanhongpin/node-grpc-mongo
grpc load-balancer node
Last synced: about 1 year ago
JSON representation
A sample GRPC with node and mongo
- Host: GitHub
- URL: https://github.com/alextanhongpin/node-grpc-mongo
- Owner: alextanhongpin
- Created: 2017-09-06T00:18:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-06T17:31:13.000Z (over 8 years ago)
- Last Synced: 2025-01-29T21:52:51.034Z (about 1 year ago)
- Topics: grpc, load-balancer, node
- Language: JavaScript
- Size: 397 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-grpc-mongo
Note that `.env` is not normally committed to the repository. For demonstration purpose on how to manage environment variables, this file is included in this repo.
## Setup
```
$ yarn global add grpc-tools
$ yarn add grpc
$ yarn add google-protobuf
```
## Generate service
```
$ grpc_tools_node_protoc --js_out=import_style=commonjs,binary:. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` proto/transaction.proto
```