Skip to content

A dedicated Ruby GraphQL service to amalgamate my personal data from various sources

Notifications You must be signed in to change notification settings

sra405/myRubyQL

Repository files navigation

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

About

A dedicated Ruby GraphQL service to amalgamate my personal data from various sources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published