Enhance WebSocket server with new HTTP server implementation and type assertions

* Updated package.json to specify the entry point for the development script and added morgan as a dependency.
* Introduced HttpServer class for handling HTTP requests with Express and integrated logging.
* Added new assertion methods in the Assert class for better type validation.
* Created IRoutes interface to define route handling structure.
* Added optional and nullable type definitions for improved type safety.
* Implemented initial server setup in src/index.ts.
This commit is contained in:
2025-09-27 14:36:06 -04:00
parent cd40ed2bca
commit e895704785
6 changed files with 142 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
"lint": "eslint --max-warnings 0 .",
"prelint:fix": "npm run format",
"lint:fix": "eslint --fix .",
"dev": "tsx watch --clear-screen=false",
"dev": "tsx watch --clear-screen=false src/index.ts",
"typecheck": "tsc"
},
"author": "Alexander Zinn",
@@ -20,6 +20,7 @@
"@eslint/js": "9.36.0",
"@eslint/json": "0.13.2",
"@eslint/markdown": "7.3.0",
"@types/morgan": "1.9.10",
"@types/node": "24.5.2",
"eslint": "9.36.0",
"globals": "16.4.0",
@@ -32,6 +33,7 @@
},
"dependencies": {
"@techniker-me/logger": "0.0.15",
"@techniker-me/tools": "2025.0.16"
"@techniker-me/tools": "2025.0.16",
"morgan": "1.10.1"
}
}