your site, built now.
# hit the http api server
go run github.com/justshare-io/nextgo@latest
curl --header "Content-Type: application/json" --data '{"name": "Jane"}' http://localhost:8080/greet.GreetService/Greet
# ui for calling the grpc server, like postman.
go run github.com/fullstorydev/grpcui/cmd/grpcui@latest -plaintext localhost:8080
- server: I would start by reading the comments in main.go.
- proto: greet.proto is the protobuf file that defines the service.
If you change the proto file, you need to regenerate the go code.
go install github.com/bufbuild/buf/cmd/buf@latest
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
go generate ./...
go install github.com/fullstorydev/grpcui/cmd/grpcui@latest
grpcui -plaintext localhost:8080
- Works today, tomorrow, and next year.
- Scales with both your infra and team.
- Easy to learn and fun to use.
- go
- grpc