Skip to content

skrevolve/go-grpc-api-gateway-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-grpc-api-gateway-microservice

Configuration Description

  1. API Gateway

  2. gRPC Service

Installing Protobuffer

Linux (Ubuntu)

sudo apt install -y protobuf-compiler

MacOS

brew install protobuff

Windows

Releases Protocl Buffers v2x.x list

> protoc-2x.x-win32.zip
> protoc-2x.x-win64.zip

GRPC and Protobuffer package dependencies

go get google.golang.org/protobuf/cmd/protoc-gen-go
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get google.golang.org/grpc

Make Resource

create database auth_svc;
create database order_svc;
create database product_svc;

🐞Issues

protoc protoc/route_guide.proto --go_out=plugins=grpc:.
ERR : --go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

Use go work in project root

cd go-grpc-api-gateway-microservice
go work init
go work use ./api-gateway ./auth-svc ./order-svc ./product-svc

Releases

No releases published

Packages

No packages published