matrix-dimension/src-ts/index.ts
Travis Ralston 826364e803 Re-implement the Scalar API in typescript
This is part of a rewrite for Dimension to better support integrations. Only the bare minimum scalar APIs are implemented at this point - dimension is non-functional.
2017-12-17 19:22:13 -07:00

15 lines
447 B
TypeScript

import { LogService } from "matrix-js-snippets";
import config from "./config";
import { DimensionStore } from "./db/DimensionStore";
import Webserver from "./api/Webserver";
LogService.configure(config.logging);
LogService.info("index", "Starting voyager...");
const webserver = new Webserver();
DimensionStore.updateSchema()
.then(() => webserver.start())
.then(() => {
LogService.info("index", "Dimension is ready!");
});