CoastalCommitsPastes/server/src/server.ts
2022-03-21 17:20:41 -07:00

13 lines
319 B
TypeScript

import { createServer } from 'http';
import { app } from './app';
import config from './lib/config';
import { sequelize } from './lib/sequelize';
(async () => {
await sequelize.sync();
createServer(app)
.listen(
config.port,
() => console.info(`Server running on port ${config.port}`)
);
})();