Files
Qris-Soundbox/dist/index.js
2026-05-25 08:22:12 +07:00

14 lines
399 B
JavaScript

import { createServer } from "node:http";
import app from "./app";
import { ensureSchema } from "./shared/db/pool";
import { env } from "./config/env";
const port = env.PORT;
const server = createServer(app);
async function bootstrap() {
await ensureSchema();
server.listen(port, () => {
console.log(`QRIS Soundbox Platform bootstrap ready on :${port}`);
});
}
void bootstrap();