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
- Host: GitHub
- URL: https://github.com/leomirandadev/grpc-project
- Owner: leomirandadev
- Created: 2020-10-02T20:10:42.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-02T20:13:04.000Z (over 5 years ago)
- Last Synced: 2024-05-23T04:19:03.148Z (about 2 years ago)
- Topics: go, golang, grpc, grpc-client, grpc-go, grpc-server, nodejs
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```