Node.js Backend Developer
Build production Node.js services: event-loop health, typed validation, JWT auth, graceful shutdown, and the debugging habits that keep APIs alive under load.
Path overview
Node.js 后端的核心不是写路由,而是守住事件循环、错误边界与进程生命周期。本路径从事件循环与阻塞诊断入手,经过 Express 与 Fastify 的错误处理范式、类型化校验与 JWT 认证,最终落到优雅停机与生产级启动模板。
This path trains the habits that keep Node.js services alive: understanding the event loop, wiring error handling through Express and Fastify, validating inputs with typed schemas, and shutting down gracefully under SIGTERM.
Reconstruct the reasoning behind "Error Handling Patterns for Production Applications" by tracing "Structured Logging and the Redaction Layer" to the failure it prevents in nodejs systems.
Next step: Express
⏱ 1h
Wire "Express" into a scratch nodejs project, following "app.listen app.listen(port, callback?): Server", and record one working request/response pair.
Prerequisites: Error Handling Patterns for Production Applications
Next step: Fastify
⏱ 1h
Wire "Fastify" into a scratch nodejs project, invoke fastify() fastify(opts?: FastifyOptions): FastifyInstance, and record the error path.
Prerequisites: Express
Next step: Fastify Type Provider Zod Serialization
⏱ 1h
Execute "Fastify Type Provider Zod Serialization", change one constant, and describe how the output diverges from "Register a Zod type provider in Fastify so route schemas drive validation, serialization,".
Prerequisites: Fastify
Next step: Node.js JWT Auth with Express
⏱ 0.75h
Run the nodejs snippet "Node.js JWT Auth with Express", capture stdout, and show which line demonstrates the documented behavior: "the login entry point".
Prerequisites: Fastify Type Provider Zod Serialization
Next step: Add a Graceful Shutdown Handler
⏱ 0.75h
Execute "Add a Graceful Shutdown Handler" end to end, then repeat the last step with one parameter changed and compare "Once shutdown begins, readiness returns 503 and the load balancer removes the instance.".
Next step: Express TypeScript Prisma Starter
⏱ 0.5h
Use "Express + Prisma REST API" for a nodejs starter, adapting "An Express.js REST API with Prisma ORM, TypeScript, Zod validation, and Swagger docs for" without breaking the entry point.
Next step: Trace a Request Pipeline Until the First Failure
⏱ 1.5h
In the "Node.js Backend Developer" path, implement "Trace a Request Pipeline Until the First Failure" so JSON object: { pipeline: string[], results: { [stage]: pass | fail } } yields {blockedBy:auth,ranBefore:[rate-limit],handlerRan:false}, including the second sample's edge case.
Prerequisites: Express TypeScript Prisma Starter
Next step: Capstone: Node.js Backend Developer
⏱ 0.5h
Ship "Let in-flight requests finish within a configurable grace period." from "Build an HTTP Server with Graceful Shutdown", then prove it with the project's test suite and an acceptance note.
Prerequisites: Express TypeScript Prisma Starter, Trace a Request Pipeline Until the First Failure
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h