Skip to content

shashank76/gRPCRelay

Repository files navigation

Gruf Demo Rails Application

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

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
foreman start

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published