import express from "express"; import dotenv from "dotenv"; import * as bodyParser from 'body-parser'; import * as routes from "./routes" import {SERVER_PORT} from "./config"; dotenv.config(); const app = express(); app.use(bodyParser.json()); // Configure routes routes.register(app); // start the Express server app.listen(SERVER_PORT, () => { // tslint:disable-next-line:no-console console.log(`server started at http://localhost:${SERVER_PORT}`); });