Setup an HTTP server

Here's an example using express-graphql:

const express = require('express');
const graphqlHTTP = require('express-graphql');
const typeDefs = require('./graphql/types');
const resolvers = require('./graphql/resolvers');
const { makeExecutableSchema } = require('@graphql-tools/schema');
const schema = makeExecutableSchema({
typeDefs,
resolvers,
});
const app = express();
app.use('/graphql', graphqlHTTP({
schema,
graphiql: true,
}));
app.listen(3000, () => {
console.info('Listening on http://localhost:3000/graphql');
});

And you can test your queries using built-in GraphiQL;

Adding Subscriptions support

TODO