- Add package.json with express dependency and npm start script
- Add index.js: Express server on port 3000 with /todos and /healthz endpoints
- /todos returns 3 hardcoded todo objects {id, title, done}
- /healthz returns {ok: true}
- Update README.md with Run section
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
213 B
JSON
13 lines
213 B
JSON
{
|
|
"name": "todo-app",
|
|
"version": "0.1.0",
|
|
"description": "Minimal Express TODO API",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"start": "node index.js"
|
|
},
|
|
"dependencies": {
|
|
"express": "^4.18.2"
|
|
}
|
|
}
|