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

https://github.com/hrz8/geprec

geprec is not no grpc: learning buf and grpc
https://github.com/hrz8/geprec

buf grpc grpc-gateway grpc-go

Last synced: about 1 year ago
JSON representation

geprec is not no grpc: learning buf and grpc

Awesome Lists containing this project

README

          

# geprec

## setup buf

```bash
buf config init
```

## setup module proto

```bash
buf lint
buf build
```

## generate

```bash
buf generate # add plugin
```

## deps

```bash
buf dep update
```

## in action

### http
```bash
curl -X POST http://localhost:3008/v1/greeter/hello -d '{"name": "Eji"}'
```

### grpc
```bash
grpcurl -plaintext -d '{"name": "Eji"}' localhost:3009 greeter.v1.GreeterService/SayHello
```