A wrapper around SWAPI built using GraphQL.
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.
Try it out at http://graphql-swapi.parseapp.com/.
Install dependencies with
npm installThe SWAPI wrapper is in ./swapi. It can be tested with:
npm testA local express server is in ./server. It can be run with:
npm startA GraphiQL instance will be opened at http://localhost:8080/ to explore the API.
A parse server is in ./parse. After adding a parse/src/config/global.json
file, it can be deployed with:
npm run deployA sample deploy is at http://graphql-swapi.parseapp.com/