Phase 1: Backend scaffold with Fastify, Prisma, Docker

This commit is contained in:
2026-02-23 15:26:50 +01:00
commit 8ea3279c3b
17 changed files with 3345 additions and 0 deletions

16
src/index.ts Normal file
View File

@@ -0,0 +1,16 @@
import { buildApp } from './app.js';
import { config } from './config.js';
async function main() {
const app = await buildApp();
try {
await app.listen({ port: config.port, host: config.host });
app.log.info(`Server listening on ${config.host}:${config.port}`);
} catch (err) {
app.log.error(err);
process.exit(1);
}
}
main();