Files
talk/src/index.ts
T
Wyatt Johnson fa57c72842 linting + initial mutation
- added tslint
- mutation support
2018-06-25 14:32:01 -06:00

23 lines
468 B
TypeScript

import express from "express";
import logger from "talk-server/logger";
import createTalk from "./core";
// Create the app that will serve as the mounting point for the Talk Server.
const app = express();
async function bootstrap() {
try {
// Create the server instance.
const server = await createTalk();
// Start the server.
await server.start(app);
} catch (err) {
logger.error({ err }, "can not bootstrap server");
}
}
bootstrap();