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

https://github.com/leomirandadev/grpc-project

How to use gRPC on Go and NodeJS
https://github.com/leomirandadev/grpc-project

go golang grpc grpc-client grpc-go grpc-server nodejs

Last synced: about 2 months ago
JSON representation

How to use gRPC on Go and NodeJS

Awesome Lists containing this project

README

          

# GRPC Golang to Node.js
In this repository you will find two applications communicating with each other over gRPC.

On MacOs, install protobuf.
``` shell
$ brew install protobuf
```

## Node Server
Dependencies:
- @grpc/grpc-js ;
- @grpc/proto-loader ;

## Golang Client
Dependencies:
- google.golang.org/grpc ;

To create golang protoFile you need install first protoc-gen-go:
``` shell
$ brew install protoc-gen-go
```

After install protoc-gen-go, run on terminal:
```shell
$ protoc --go_out=plugins=grpc:posts_service posts_service.proto
```