docs: update README.md

main
strikerlulu 2023-02-19 00:14:02 +05:30
parent c2af9ec878
commit 5acdde1026
1 changed files with 8 additions and 2 deletions

View File

@ -1,20 +1,26 @@
## Just tinkering with grpc
### Setup
```
docker-compose up
# add two numbers and get the result
curl localhost:3001/add/3/2
```
### Test mock server
Actually mocking the server for testing...
```
cd ./server
go test
```
### To generate grpc code using protobuf compiler
```sh
cd ./pd
cd ./pb
protoc --go_out=. --go-grpc_out=. calc_service.proto
```