1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-13 06:40:06 +02:00
copilot/legacy/docker-graphql/src/index.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

15 lines
287 B
JavaScript

const express = require('express');
const app = express();
app.use('/graphql', require('./endpoint'));
const server = app.listen(4010, err => {
if (err) {
console.error(err);
throw err;
}
console.log(`Listening at http://0.0.0.0:${server.address().port}/graphql`);
});