mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 22:17:59 +08:00
fa57c72842
- added tslint - mutation support
23 lines
468 B
TypeScript
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();
|