Skip to content

dark-elephant/asoiaf-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a modified version of https://github.com/afram/iceandfire-graphql repo with cors disabled to make it work with my simple relay client

An API of Ice and Fire GraphQL Wrapper

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:

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.

Getting Started

Install dependencies with

npm install

Game of Thrones Wrapper

The GOT API wrapper is in ./schema. It can be tested with:

npm test

Local Server

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.

About

This is an forked repo of https://github.com/afram/iceandfire-graphql with a modification to make it work with any relay client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published