CoastalCommitsPastes/server/src/server.ts

14 lines
336 B
TypeScript
Raw Normal View History

2022-03-06 19:46:59 -05:00
import { createServer } from 'http';
import { app } from './app';
import config from '../lib/config';
import { sequelize } from '../lib/sequelize';
(async () => {
2022-03-21 06:28:06 -04:00
await sequelize.sync({ force: true });
2022-03-06 19:46:59 -05:00
createServer(app)
.listen(
config.port,
() => console.info(`Server running on port ${config.port}`)
);
})();