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

13 lines
358 B
TypeScript
Raw Normal View History

2021-10-24 04:18:18 +02:00
import { application } from './application.js'
import { HOST, PORT } from './tools/configurations/index.js'
2021-10-24 04:06:16 +02:00
2021-10-24 04:18:18 +02:00
const main = async (): Promise<void> => {
const address = await application.listen(PORT, HOST)
2022-02-19 20:08:25 +01:00
console.log('\u001B[36m%s\u001B[0m', `🚀 Server listening at ${address}`)
2021-10-24 04:18:18 +02:00
}
2021-10-24 04:06:16 +02:00
2021-10-24 04:18:18 +02:00
main().catch((error) => {
console.error(error)
process.exit(1)
})