grpc_example
Crystal gRPC Example
This is an example app showcasing the grpc
Crystal shard.
Installation
git clone https://github.com/jgaskins/grpc_example.git
cd grpc_example
shards
Usage
-
Compile the
.proto
file containing the service and message definitionsprotoc -I protos \ --grpc_out=src/protobufs \ --crystal_out=src/protobufs \ --plugin=protoc-gen-grpc=bin/grpc_crystal \ --plugin=protoc-gen-crystal=bin/protoc-gen-crystal \ protos/hello_world.proto
-
Run the server:
crystal src/server.cr
-
Run the client, which will make a request to the server and pretty-print the result to standard output:
crystal src/client.cr
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/jgaskins/grpc_example/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Jamie Gaskins - creator and maintainer
Repository
grpc_example
Owner
Statistic
- 8
- 0
- 0
- 0
- 1
- almost 5 years ago
- February 8, 2020
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 13:47:33 GMT
Languages