14 lines
399 B
JavaScript
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();
|