Phase 2 and Demo
This commit is contained in:
@@ -10,6 +10,7 @@ import type {
|
||||
|
||||
import { app } from "./app.js";
|
||||
import { registerSocketHandlers } from "./socket/index.js";
|
||||
import { startScheduler } from "./services/scheduler.js";
|
||||
import { prisma } from "./lib/prisma.js";
|
||||
|
||||
const PORT = parseInt(process.env["PORT"] ?? "3001", 10);
|
||||
@@ -31,6 +32,7 @@ export const io = new Server<
|
||||
});
|
||||
|
||||
registerSocketHandlers(io);
|
||||
startScheduler(io);
|
||||
|
||||
httpServer.listen(PORT, () => {
|
||||
console.log(`[server] listening on http://localhost:${PORT}`);
|
||||
|
||||
Reference in New Issue
Block a user