CoastalCommitsPastes/server/src/server.ts

11 lines
270 B
TypeScript
Raw Permalink Normal View History

2022-03-24 14:57:40 -07:00
import { createServer } from "http"
import { app } from "./app"
import config from "./lib/config"
import "./database"
2022-03-29 00:19:33 -07:00
;(async () => {
// await sequelize.sync()
createServer(app).listen(config.port, () =>
console.info(`Server running on port ${config.port}`)
)
})()