Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muhreeowki/grpc-calculator
A gRPC calculator service I built in golang to learn about how gRPC APIs work.
https://github.com/muhreeowki/grpc-calculator
golang grpc grpc-go microservice
Last synced: about 2 months ago
JSON representation
A gRPC calculator service I built in golang to learn about how gRPC APIs work.
- Host: GitHub
- URL: https://github.com/muhreeowki/grpc-calculator
- Owner: muhreeowki
- Created: 2024-08-15T06:53:48.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T07:08:35.000Z (5 months ago)
- Last Synced: 2024-10-14T05:42:19.751Z (3 months ago)
- Topics: golang, grpc, grpc-go, microservice
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculator Service
This repo contains the source code for a Calculator API gRPC server I built to learn the basics of gRPC.
## Requirements
To run this code, you'll need the following dependencies:
- Go 1.22.5
- MakeTo make modifications to this code, make sure you have protobuf tools installed, as well as grpcui for client.
### Linux
Install protobuf tools:
```
$ sudo apt install -y protobuf-compiler
```Install grpcui:
```
$ go install github.com/fullstorydev/grpcui/cmd/grpcui@latest
```alternatively you can install the protoc plugins using golang
```
$ go install google.golang.org/grpc/cmd/[email protected]
$ go install google.golang.org/grpc/cmd/[email protected]
```## Building
To build this code, run `go build .` or `make build`.
If you make any modifications to the protobuf, run `make generate`
## Running Locally
To run the server, cd into the server directory and run `go run main.go`
To interact with the server with grpcui run `grpcui --plaintext 127.0.0.1:8080`