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
- Host: GitHub
- URL: https://github.com/hrz8/geprec
- Owner: hrz8
- Created: 2024-08-27T05:21:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-27T05:21:42.000Z (over 1 year ago)
- Last Synced: 2025-01-18T04:26:54.034Z (about 1 year ago)
- Topics: buf, grpc, grpc-gateway, grpc-go
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```