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