Skip to content

Instantly share code, notes, and snippets.

@jbach
Created January 4, 2016 14:08
Show Gist options
  • Save jbach/0ee869e63f187dc7ff54 to your computer and use it in GitHub Desktop.
Save jbach/0ee869e63f187dc7ff54 to your computer and use it in GitHub Desktop.
import express from 'express';
import { json } from 'body-parser';
import graffiti from '../';
import schema from './schema';
const app = express();
app.use(json());
app.use(graffiti.express({
schema
}));
app.listen(3001, (err) => {
if (err) {
throw err;
}
console.log('Express server is listening on port 3001');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment