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

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

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
```