feat: add TypeScript server skeleton

This commit is contained in:
2026-06-07 12:18:00 +02:00
parent 28c91a4b0e
commit cc5a567335
4 changed files with 66 additions and 0 deletions

14
src/index.ts Normal file
View File

@@ -0,0 +1,14 @@
import { createServer } from "node:http";
import { env } from "./shared/env.js";
import { createRequestHandler } from "./server/request-handler.js";
const handler = createRequestHandler();
const server = createServer((req, res) => {
void handler(req, res);
});
server.listen(env.port, env.host, () => {
console.log(`mapy-mg listening on http://${env.host}:${env.port}`);
});