2019-01-19 21:41:54 +01:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const express = require('express');
|
|
|
|
const http = require('http');
|
2019-01-22 19:45:32 +01:00
|
|
|
const Translucid_1 = require("./Translucid.js");
|
2019-01-19 21:41:54 +01:00
|
|
|
function QuickServer(port) {
|
|
|
|
const app = express();
|
|
|
|
const server = http.Server(app);
|
|
|
|
const translucid = new Translucid_1.Translucid(app);
|
|
|
|
return {
|
|
|
|
express, app, http, server, translucid,
|
|
|
|
connect: new Promise((resolve, reject) => {
|
|
|
|
server.listen(port, () => {
|
|
|
|
resolve("Connected");
|
|
|
|
});
|
|
|
|
})
|
|
|
|
};
|
|
|
|
}
|
|
|
|
exports.QuickServer = QuickServer;
|