Update Dockerfile and package.json to include environment variables, expose port, and add server entry point; add server implementation in src/server.ts with health check and greeting endpoint.
Some checks failed
ci / build-test-pack (push) Failing after 1m21s
Some checks failed
ci / build-test-pack (push) Failing after 1m21s
This commit is contained in:
22
package.json
22
package.json
@@ -8,7 +8,9 @@
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"build": "npm run clean && tsc -p tsconfig.json",
|
||||
"test": "vitest run"
|
||||
"test": "vitest run",
|
||||
"start": "node dist/server.js",
|
||||
"dev": "tsx watch src/server.ts"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
@@ -17,6 +19,22 @@
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.19.2",
|
||||
"helmet": "^7.1.0",
|
||||
"morgan": "^1.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/morgan": "^1.9.7",
|
||||
"@types/node": "^20.14.12",
|
||||
"rimraf": "^5.0.7",
|
||||
"tsx": "^4.19.1",
|
||||
"typescript": "^5.5.4",
|
||||
"vitest": "^1.6.0"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user