Created the type graph

This commit is contained in:
2020-03-03 19:31:14 +11:00
commit fa62291f51
7 changed files with 602 additions and 0 deletions

21
server/server.js Normal file
View File

@@ -0,0 +1,21 @@
//express for testing
const express = require('express');
const path = require('path');
const app = express();
//test the library
const schema = require('./schema.js');
//const handler = requre('./handler.js');
const simpleQL = require('./simpleQL');
const simple = simpleQL(schema);
//open the end
app.post('simpleQL', (req, res) => {
res.status(200).send(simple(req.body));
});
//startup
app.listen(process.env.WEB_PORT || 3100, (err) => {
console.log(`listening to *:${process.env.WEB_PORT || 3100}`);
});