This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
api/src/index.ts
2022-02-19 19:08:25 +00:00

13 lines
358 B
TypeScript

import { application } from './application.js'
import { HOST, PORT } from './tools/configurations/index.js'
const main = async (): Promise<void> => {
const address = await application.listen(PORT, HOST)
console.log('\u001B[36m%s\u001B[0m', `🚀 Server listening at ${address}`)
}
main().catch((error) => {
console.error(error)
process.exit(1)
})