Skip to main content
Curriculum

Phase 1

HTTP Entry Points and Raw Responses

Flip your perspective from calling `fetch` to serving HTTP. Using `node:http`, iterate in small steps over startup, responses, headers, JSON, status codes, URLs, and methods.

Topics
8
topic groups
Ready
90
implemented tasks
Total
90
planned tasks

Guest mode: you can grade every exercise, but answers and progress are not saved.

  1. 01Print a single startup log line after listen completesAuto grading / Feedback
  2. 02Manage the port number with a constant and use it in the log tooAuto grading / Feedback
  3. 03Start on 3000 when the PORT environment variable is not setAuto grading / Feedback
  4. 04Fix the bug that prints the success log before listenAuto grading / Feedback
  5. 05Log the method and url when a request comes inAuto grading / Feedback
  6. 06Count incoming requests and include the count in the logAuto grading / Feedback
  7. 07Consolidate the listen logic into a startServer functionAuto grading / Feedback
  8. 08Log the cause when listen failsAuto grading / Feedback
  9. 09Fix the bug where server.listen is called twiceAuto grading / Feedback
  10. 10Tidy up the startup log, PORT, and request log togetherAuto grading / Feedback