1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +02:00
copilot/cloudapi-graphql/src/index.js
Sérgio Ramos 04e604eb8e use port 4000 by default
also:
 - use prettier
 - uddate dependencies
 - document other ways of setting up credentials
2017-04-27 19:26:15 +01:00

15 lines
287 B
JavaScript

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