swapi-graphql
v0.0.6
Published
A GraphQL wrapper for swapi.com
Downloads
80
Readme
SWAPI GraphQL Wrapper
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/.
Getting Started
Install dependencies with
npm install
SWAPI Wrapper
The SWAPI wrapper is in ./swapi
. 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:8080/ to explore the API.
Parse Server
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/