#SWAPI Apollo Server Wrapper
A wrapper around SWAPI built using Apollo Server. This is intended to be a POC of an express and HAPI GraphQL server.
Uses:
- graphql-server-express - Apollo server GraphQL middleware for express.
- graphql-server-hapi - Apollo server GraphQL plugin for Hapi.
- graphql-js - a JavaScript GraphQL runtime.
- DataLoader - for coalescing and caching fetches.
- GraphiQL - for easy exploration of this GraphQL server.
Install dependencies with
npm install
A local server is in ./src
. It can be run with:
npm start
This is will start both an express server on port 3000 and a HAPI server on port 8000.
You can explore the API at http://localhost:3000 or http://localhost:8000
A development server that watches for changes can be ran with:
npm run dev