rmosolgo / graphql-ruby-chatroom-example

Example GraphQL-Ruby + Rails app showing subscriptions and persisted queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chatroom Example

image

This isn't a very good app, but it demonstrates a few GraphQL-Ruby features:

  • Pusher Subscriptions
  • Persisted Queries -- rewritten with out this. Let me know if you'd like me to add it back!

It uses Apollo 3, but not the react bindings. Instead, the queries are lumped into one API client.

If you have a question or suggestion, feel free to open an issue!

Development

  • bundle install
  • Setup webhooks:
    • ngrok http 3000
    • Add the webhook to pusher, eg "channel presence" to https://ff0ca056.ngrok.io/pusher_webhooks
  • bin/dev

Pusher Subscriptions

About

Example GraphQL-Ruby + Rails app showing subscriptions and persisted queries


Languages

Language:Ruby 71.4%Language:JavaScript 15.1%Language:HTML 11.7%Language:CSS 1.5%Language:Shell 0.3%