graphql-ruby-chatroom-example
graphql-ruby-chatroom-example copied to clipboard
Example GraphQL-Ruby + Rails app showing subscriptions and persisted queries
Chatroom Example
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
- JS configuration
- Server setup
- Client usage