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
354 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)
console.log('\x1b[36m%s\x1b[0m', `🚀 Server listening at ${address}`)
}
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)
})