Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thealphadollar/go-microservices-pg
A playground to learn making microservices in GO making use of protobuf and gRPC as the underlying transport protocol.
https://github.com/thealphadollar/go-microservices-pg
Last synced: about 19 hours ago
JSON representation
A playground to learn making microservices in GO making use of protobuf and gRPC as the underlying transport protocol.
- Host: GitHub
- URL: https://github.com/thealphadollar/go-microservices-pg
- Owner: thealphadollar
- License: mit
- Created: 2021-05-28T17:32:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-28T15:50:25.000Z (over 3 years ago)
- Last Synced: 2024-10-11T20:16:31.027Z (26 days ago)
- Language: Go
- Size: 15.5 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-microservices-PG
A playground to learn making microservices in GO making use of protobuf and gRPC as the underlying transport protocol.## Tech Stack
The tech stack includes golang, mongodb, grpc, docker, Google Cloud, Kubernetes, NATS, CircleCI, Terraform and go-micro.
## Dockerisation
We have used multistage builds to keep the size of the containers minimal.
### Service Docker
The dockerfile for service is present in the "service" folder in the project root.
0. `cd /root/of/the/project`
0. `docker build -t consignment-service -f ./service/Dockerfile .`
0. `docker run -p 50051:50051 consignment-service:latest`### Client Docker
The dockerfile for client is present in the "client" folder in the project root.
0. `cd /root/of/the/project`
0. `docker build -t consignment-client -f ./client/Dockerfile .`
0. `docker run -p 50051:50051 consignment-client:latest`## Credit
The playground follows the [10-part tutorial on building microservices in Go](https://ewanvalentine.io/microservices-in-golang-part-1/) by @EwanValentine.
## Disclaimer
The parent developer of micro, @microhq , has been shut down. Due to the same, some features may not work as intended.