CoastalCommitsPastes/server/src/server.ts

11 lines
293 B
TypeScript
Raw Normal View History

2022-03-24 17:57:40 -04:00
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}`)
)
})()