An open API service indexing awesome lists of open source software.

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

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:.
```