feat(backend): lessons CRUD service and routes
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user