+ adding hono and @hono/node-server

+ reemplazar index por server.ts
+ implement a basic server.ts in server.ts
This commit is contained in:
albert
2025-07-28 19:13:27 +02:00
parent e62796ae7d
commit fb433cfac1
4 changed files with 36 additions and 7 deletions

View File

@ -16,8 +16,8 @@
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx watch src/index.ts",
"start": "node dist/server.js",
"dev": "tsx watch src/server.ts",
"test": "jest",
"test:watch": "jest --watch",
"lint": "eslint src/**/*.ts",
@ -36,6 +36,8 @@
"typescript": "^5.8.3"
},
"dependencies": {
"@hono/node-server": "^1.17.1",
"hono": "^4.8.9",
"mongoose": "^8.16.5",
"pino": "^9.7.0"
}