https://github.com/spilth/ogay-grpc
gRPC Server & Client for Pig Latin Translation
https://github.com/spilth/ogay-grpc
go golang grpc grpc-go pig-latin
Last synced: 10 months ago
JSON representation
gRPC Server & Client for Pig Latin Translation
- Host: GitHub
- URL: https://github.com/spilth/ogay-grpc
- Owner: spilth
- Created: 2018-08-12T19:01:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T03:29:25.000Z (over 7 years ago)
- Last Synced: 2025-03-13T06:12:53.167Z (about 1 year ago)
- Topics: go, golang, grpc, grpc-go, pig-latin
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ogay gRPC Example
## Project Setup
```bash
$ git clone git@github.com:spilth/ogay-grpc.git
$ cd ogay-grpc
$ go get -u google.golang.org/grpc
$ go get -u github.com/golang/protobuf/protoc-gen-go
```
### Running the Server
```bash
$ go run server/main.go
```
### Running the Client
```bash
$ go run client/main.go
2018/08/12 14:58:24 'Hello' translates to 'Ellohay'
$ go run client/main.go Go
2018/08/12 14:57:51 'Go' translates to 'Ogay'
```
## Regenerating the Generated Code
```bash
$ protoc ogay.proto --go_out=plugins=grpc:.
```