14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import { createServer } from 'http';
|
|
import { app } from './app';
|
|
import config from '../lib/config';
|
|
import { sequelize } from '../lib/sequelize';
|
|
|
|
(async () => {
|
|
await sequelize.sync({ force: true });
|
|
|
|
createServer(app)
|
|
.listen(
|
|
config.port,
|
|
() => console.info(`Server running on port ${config.port}`)
|
|
);
|
|
})();
|