INNER CODE UNIT · TypeScript

start

40rbidd3n/Hydro0x01 · backend/src/server.ts:4

const start = async () => {
  const app = await buildApp();
  const port = parseInt(process.env.PORT || "3000", 10);

  try {
    await app.listen({ port, host: "0.0.0.0" });
    app.log.info(`Server listening on port ${port}`);
  } catch (err) {
    app.log.error(err);
    process.exit(1);
  }
};

start();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…