10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
import { createApp } from './app.js';
|
|
import { createDb } from './db/client.js';
|
|
|
|
const PORT = Number(process.env.PORT ?? 3000);
|
|
const { db } = createDb();
|
|
const app = createApp(db);
|
|
app.listen(PORT, () => {
|
|
console.log(`Backend listening on http://localhost:${PORT}`);
|
|
});
|