Applicatie afmaken en GUI-flow herstellen

Voegt boodschappenlijsten, productbeheer, realtime synchronisatie en browsercache-updates toe. Herstelt login- en sessiegedrag en maakt database-seeding herhaalbaar.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-08-07 20:44:05 +02:00
parent 26a820b41a
commit ce68182c08
23 changed files with 552 additions and 163 deletions
+8
View File
@@ -1,12 +1,20 @@
require("dotenv").config();
const http = require("http");
const { Server } = require("socket.io");
const createApp = require("./config/express");
const session = require("./config/session");
const socketHandlers = require("./sockets/handlers");
const app = createApp();
const server = http.createServer(app);
const io = new Server(server);
io.use((socket, next) => session(socket.request, {}, next));
socketHandlers(io);
app.locals.io = io;
const PORT = process.env.PORT || 3000;