Initial commit
This commit is contained in:
13
dist/index.js
vendored
Normal file
13
dist/index.js
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user