grpc_example
Version, currently master branch1 version
- master branchlatestFeb 8, 2020
github.com/jgaskins/grpc_example
Example of using the GRPC Crystal shard in an application
9 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
grpc_example:
github: jgaskins/grpc_example
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.32.1- License
- MIT
- Author
- Jamie Gaskins <jgaskins@gmail.com>
- Target
grpc_examplefrom src/grpc_example.cr
Dependencies
Runtime Dependencies
- grpc*github: jgaskins/grpc
README
# Crystal gRPC Example
This is an example app showcasing the [`grpc`](https://github.com/jgaskins/grpc) Crystal shard.
## Installation
```
git clone https://github.com/jgaskins/grpc_example.git
cd grpc_example
shards
```
## Usage
1. Compile the `.proto` file containing the service and message definitions
```
protoc -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
```
2. Run the server:
```
crystal src/server.cr
```
2. 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
1. Fork it (<https://github.com/jgaskins/grpc_example/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Jamie Gaskins](https://github.com/jgaskins) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Feb 8, 2020
- Crystal
0.32.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/jgaskins/grpc_example
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1