feat(backend): lessons CRUD service and routes

This commit is contained in:
2026-05-20 20:47:43 +02:00
parent 3ff79b252c
commit 8af8ad54fa
5 changed files with 234 additions and 13 deletions

View File

@@ -1,7 +1,9 @@
import { createApp } from './app.js';
import { createDb } from './db/client.js';
const PORT = Number(process.env.PORT ?? 3000);
const app = createApp();
const { db } = createDb();
const app = createApp(db);
app.listen(PORT, () => {
console.log(`Backend listening on http://localhost:${PORT}`);
});