13 lines
358 B
TypeScript
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)
|
|
})
|