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 install
The SWAPI wrapper is in ./swapi
. 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: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 deploy
A sample deploy is at http://graphql-swapi.parseapp.com/