https://github.com/anthdm/golangmicro
A microservice written in Golang with gRPC and JSON transport
https://github.com/anthdm/golangmicro
Last synced: about 1 year ago
JSON representation
A microservice written in Golang with gRPC and JSON transport
- Host: GitHub
- URL: https://github.com/anthdm/golangmicro
- Owner: anthdm
- Created: 2022-11-08T20:52:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-27T00:44:21.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T14:21:38.496Z (about 1 year ago)
- Language: Go
- Size: 1.15 MB
- Stars: 49
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A microservice example written in Golang
# Installing protobuffer
### Linux
```
sudo apt install -y protobuf-compiler
```
### MacOS
```
brew install protobuff
```
### GRPC and Protobuffer package dependencies
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
NOTE: You should add the `protoc-gen-go-grpc` to your PATH
```
PATH="${PATH}:${HOME}/go/bin"
```
### Running the service
```
make run
```