All Projects → bigcommerce → gruf-demo

bigcommerce / gruf-demo

Licence: MIT License
A demonstration Rails application utilizing gruf, a gRPC Rails framework.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
shell
77523 projects
Dockerfile
14818 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gruf-demo

liftbridge-api
Protobuf definitions for the Liftbridge gRPC API. https://github.com/liftbridge-io/liftbridge
Stars: ✭ 15 (-64.29%)
Mutual labels:  protobuf, grpc
xrgrpc
gRPC library for Cisco IOS XR
Stars: ✭ 40 (-4.76%)
Mutual labels:  protobuf, grpc
mnemosyne
Session management service with RPC API based on protobuf.
Stars: ✭ 15 (-64.29%)
Mutual labels:  protobuf, grpc
agentgo
Hi! Agentgo is a tool for making remote command executions from server to client with golang, protocol buffers (protobuf) and grpc.
Stars: ✭ 15 (-64.29%)
Mutual labels:  protobuf, grpc
docker-protobuf
An all-inclusive protoc Docker image
Stars: ✭ 105 (+150%)
Mutual labels:  protobuf, grpc
grpc-chat
Simple Chat Server/Client implemented with gRPC
Stars: ✭ 107 (+154.76%)
Mutual labels:  protobuf, grpc
protobuf-compiler
online protobuf compiler
Stars: ✭ 24 (-42.86%)
Mutual labels:  protobuf, grpc
grphp
PHP gRPC Framework
Stars: ✭ 19 (-54.76%)
Mutual labels:  protobuf, grpc
api
Temporal gRPC API and proto files
Stars: ✭ 25 (-40.48%)
Mutual labels:  protobuf, grpc
vtprotobuf
A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2
Stars: ✭ 418 (+895.24%)
Mutual labels:  protobuf, grpc
modern-api-management
A modern approach to manage APIs effectively using Protobuf
Stars: ✭ 36 (-14.29%)
Mutual labels:  protobuf, grpc
grpcman
A grpc testing tool based on Electron & Vue.js & Element-UI
Stars: ✭ 22 (-47.62%)
Mutual labels:  protobuf, grpc
sisyphus
Sisyphus is the way how we provide backend services.
Stars: ✭ 59 (+40.48%)
Mutual labels:  protobuf, grpc
ocaml-grpc-envoy
Using OCaml + gRPC via Envoy
Stars: ✭ 41 (-2.38%)
Mutual labels:  protobuf, grpc
grpc-jwt-spring-boot-starter
Spring boot starter for gRPC framework with JWT authorization
Stars: ✭ 24 (-42.86%)
Mutual labels:  protobuf, grpc
grpcoin
API-driven cryptocurrency paper trading game. Write a bot and play!
Stars: ✭ 53 (+26.19%)
Mutual labels:  protobuf, grpc
FSharp.GrpcCodeGenerator
A protoc plugin to enable generation of F# code
Stars: ✭ 61 (+45.24%)
Mutual labels:  protobuf, grpc
protoactor-go
Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
Stars: ✭ 4,138 (+9752.38%)
Mutual labels:  protobuf, grpc
nameko-grpc
GRPC Extensions for Nameko
Stars: ✭ 51 (+21.43%)
Mutual labels:  protobuf, grpc
tsrpc
A TypeScript RPC framework, with runtime type checking and serialization, support both HTTP and WebSocket. It is very suitable for website / APP / games, and absolutely comfortable to full-stack TypeScript developers.
Stars: ✭ 866 (+1961.9%)
Mutual labels:  protobuf, grpc

Gruf Demo Rails Application

This is a demo Rails application that utilizes gruf 2.1.0+, a gRPC Ruby framework.

This application is running Rails 6.1 in Ruby 3.0.

Running

Set the database URL as a DATABASE_URL env var in a .env file, then:

bundle install
bundle exec rake db:create db:migrate
bundle exec rake db:seed
bundle exec gruf

Alternatively, you can run ./script/e2e to automatically run a server and issue a set of different types of requests against it.

Testing with a Client

Then in another console, you can run provided rake tasks to see it in action.

Request/Response (Get a Product)

bundle exec rake test:get_product

Server Streamer (Get a list of Products)

bundle exec rake test:get_products

Client Streamer (Create a list of Products)

bundle exec rake test:create_products

Bidirectional Streamer (Create a list of Products and get back responses immediately in stream)

bundle exec rake test:create_products_in_stream

In Docker

This repository is also setup to run in a Docker container with docker-compose:

docker-compose up

Then, find the port docker exposed, and in another terminal, you can demo with:

GRPC_SERVER_URL=IP_OF_YOUR_DOCKER_INSTANCE:PORT_THAT_WAS_EXPOSED bundle exec rake test:get_product

License

Copyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].