Scaffold an Express TODO API with GET /todos endpoint #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Scaffold a minimal Express server that exposes one read-only endpoint listing in-memory todo items. This is the first non-trivial agent task — it exercises multi-file scaffolding, npm install, and runnable code.
Done criteria
package.jsonexists with at leastexpressas a dependency, and astartscript that runs the server (e.g.node index.js)index.js(or equivalent entry) starts an Express HTTP server on port 3000GET /todosreturns JSON: an array of at least 2 hardcoded todo objects with shape{ id: number, title: string, done: boolean }GET /healthzreturns 200 with body{ ok: true }(used by future CI).gitignoreexcludesnode_modulesREADME.mdincludes aRunsection explainingnpm install && npm startcurl localhost:3000/todosreturns the expected JSON before finishingHints
express.HELLO.md,LICENSE,README.md,.gitignore. Build alongside those; do not delete them.Model
sonnet
agent dev-01: PR opened → #4