From e33adbc2c7f21d6e6aca74009c6d6ad04b00d8ef Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:09:14 +0330 Subject: [PATCH] Import source: backend/src/index Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- backend/src/index.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 backend/src/index.ts diff --git a/backend/src/index.ts b/backend/src/index.ts new file mode 100644 index 0000000..96000d0 --- /dev/null +++ b/backend/src/index.ts @@ -0,0 +1,16 @@ +import { buildApp } from './app.js'; +import { env } from './config/env.js'; + +const app = buildApp(); + +async function start() { + try { + await app.listen({ port: env.PORT, host: env.HOST }); + console.log(`🚀 CoaxysPanel control plane backend listening on http://${env.HOST}:${env.PORT}`); + } catch (error) { + console.error(error); + process.exit(1); + } +} + +start();