Files
ThothII/backend/src/server.ts
T
2026-06-27 20:46:08 +02:00

7 lines
266 B
TypeScript

import { buildApp } from "./app.js";
import { loadConfig } from "./config.js";
const config = loadConfig(process.env);
const app = buildApp(config);
app.listen({ port: config.port, host: "127.0.0.1" })
.then((addr) => console.log(`backend listening on ${addr}`));