A wrapper around the Game of Thrones API built using GraphQL.
This implementation is heavily inspired (read copious amounts of copy and paste) by Facebook's own wrapper around SWAPI, which can be found on the swapi-graphql Github page
Uses:
- graphql-js - a JavaScript GraphQL runtime.
- DataLoader - for coalescing and caching fetches.
- express-graphql - to provide HTTP access to GraphQL.
- GraphiQL - for easy exploration of this GraphQL server.
A working demo is available at https://aqueous-citadel-58469.herokuapp.com
Please be patient with the above link. Heroku puts dynos to sleep if inactive for 30 minutes. The server should be responsive within 5 seconds at most on initial visit. Please report any issues you come across.
Install dependencies with
npm install
The GOT API wrapper is in ./schema
. It can be tested with:
npm test
A local express server is in ./server
. It can be run with:
npm start
A GraphiQL instance will be opened at http://localhost:PORT/ to explore the API.