Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.98 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.98 KB

myRubyQL

An initial repo to build out basic GraphQL functionality in Ruby on Rails!

I've been a big fan of Apollo for a while now so I've been following this tutorial which adds Taylor Swift queries and mutations to a rails endpoint.

Following on from that I wanted to wrap GraphQL around some of my existing RESTful API endpoints. With the intention of securing them up a little more (even though they're all on free tiers) and expanding out to other APIs (e.g. Github, PSN, Spotify) to have a single GraphQL service for ME!

Environment Variables

There are some conditional Queries and Mutations based on available environment variables. These are typically token based but some are URLs too to obfuscate accessible endpoints.

This service utilises dotenv-rails for dev and test so just pop the ones you want in /.env otherwise set them in your preferred hosting provider.

PODCAST_URL - URL for the hosted instance of this RESTful RSS-based podcast collator

CURRENCY_API_KEY - an API key for Fixer currency converter

TODO

Sandbox

I've never been much of a lover of GraphiQL interface, so I use the Apollo sandbox whenever I need to do a little digging. Just add the localhost URL to the top and BAM it'll load it in.

Notes

The docs and guides here have been a constant stream of help