

Category · Node.js
How the frontend talks to the server
Request and response, methods and statuses, JSON and headers, REST routes, fetch on the client, URLs and HTTPS, caching, error format, and real time. After this course the backend stops being a black box.
9 lessons93 min
To the first lessonCheatsheet nowTopics, each as its own lesson

01Request and responseDemoThe browser asks, the server answers. Everything else is detail of that conversation.
9 min
02Methods and status codesGET reads, POST creates. 2xx is fine, 4xx is the client's fault, 5xx is the server's.
10 min
03JSON, headers, and queryThe body is data, headers are its passport, the query refines the address.
10 min
04REST: resources and routesA noun in the path, a verb in the method. /users, not /getAllUsers.
11 min
05fetch and errors on the clientfetch doesn't throw on a 404. Checking res.ok is your job.
10 min
06URLs, DNS, and HTTPSWhat an address is made of, and what happens before the first byte of a request leaves.
10 min
07Caching: Cache-Control and ETagThe fastest request is the one that never happened. The server says how long a response may be kept.
11 min
08Errors, limits, and API versionsThe client should understand what went wrong without reading your code.
11 min
09Real time: polling, SSE, WebSocketHTTP is a question and an answer. What if the server wants to speak first?
11 min0/9 topics open. This is the course intro, not the whole course on one page.