Skip to content

calvarado2004/microservices-go

Repository files navigation

Microservices in Go

This is the repository for microservices course in Go

Reservation

MongoDB connection

MongoDB connection string

mongodb://mongo:mongo@localhost:27017/logs?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false

Kubernetes objects

It requires Portworx

Install gRPC on Go

Change your .bashrc file

export GOPATH="/opt/go"
PATH="$GOPATH/bin:/opt/protoc-21.5-linux-x86_64/bin:$PATH"
export PATH

source .bashrc

Install gRPC with the following commands:

 go install google.golang.org/protobuf/cmd/[email protected]
 go install google.golang.org/grpc/cmd/[email protected]

Download and install protoc

wget https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip
unzip https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip

Compile the proto file

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative logs.proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published