13 lines
283 B
TypeScript
13 lines
283 B
TypeScript
import { env } from './config/env'
|
|
import { buildApp } from "./app.js";
|
|
import logger from './utils/logger.js'
|
|
|
|
|
|
|
|
(async function main() {
|
|
const app = await buildApp()
|
|
|
|
await app.listen({ port: env.PORT, host: '0.0.0.0' })
|
|
logger.info(`app listening on port ${env.PORT}`)
|
|
})()
|