SkYNewZ / hello-protobuf

Hello world project to learn Protocol Buffers and gRPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello-protobuf

Hello world project to learn protobuf and gRPC.

Requirements

You need these tools in your $PATH.

Compile and run

$ protoc -I ./proto -I ../googleapis \
--go_out . \
--go-grpc_out . \
--grpc-gateway_out . \
--openapiv2_out . \
./proto/greeter.proto

$ go run .

This will start the gRPC server on tcp://localhost:7777 and the REST server on http://localhost:7778. You can use bloomrpc for gRPC as Postman for HTTP.

Resources

About

Hello world project to learn Protocol Buffers and gRPC

License:MIT License


Languages

Language:Go 100.0%