go-microservices-PG

module
v0.0.0-...-268746e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2021 License: MIT

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.

  1. cd /root/of/the/project
  2. docker build -t consignment-service -f ./service/Dockerfile .
  3. docker run -p 50051:50051 consignment-service:latest
Client Docker

The dockerfile for client is present in the "client" folder in the project root.

  1. cd /root/of/the/project
  2. docker build -t consignment-client -f ./client/Dockerfile .
  3. docker run -p 50051:50051 consignment-client:latest

Credit

The playground follows the 10-part tutorial on building microservices in Go by @EwanValentine.

Disclaimer

The parent developer of micro, @microhq , has been shut down. Due to the same, some features may not work as intended.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL