Skip to content

golangFame/microservice-GRPC-Gin-Golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservice-GRPC-Gin-Golang

The repository implement Gin gonic combined with GRPC to build infrastructure microservice. Each service is a sidecar (private database, instance)

Features

Per one service in backend communation via grpc. Gateway service provide RESTful api to client get data .

The element in one service:

├── handler
│   └── hander.go
├── main.go
├── pb
│   ├── pb.go
│   └── pb.proto
└── repo
    ├── repo.go
    └── entity.go
  • Run project with dev environment by docker-compose up -d.
  • Gateway service run at http://localhost:8080

Requiment setup protobuf

  • go get -u github.com/amsokol/protoc-gen-gotag
  • protoc -I pb pb/user.proto --go_out=plugins=grpc:pb/. --proto_path=../../../

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published