- Install buf
- We have tools.go to track tool dependencies for this module.
go mod tidy
make generate
- Run gRPC server
go run cmd/server/main.go
- Run gRPC-gateway
go run cmd/gateway/main.go
Request
curl --location --request POST 'http://localhost:8081/v1/echo' \
--data-raw '{
"message": "JJJ"
}'
Response
{"message":"Hello JJJ"}
- Use docker build
- Integrate to kubernetes
- docker-compose (option)