This is the course’s first coding exercise, where you give the shoe rental desk’s API its request tickets, timing lines, and a log of new pairs. If you haven’t solved a coding exercise on RealJS before, then this section shows you how the editor and its tests work before you start.
How Coding Exercises Work
A coding exercise runs right here in your browser, on Node 26. The editor above holds app.ts, the file you change. Click Run Tests or press Ctrl+Enter (Cmd+Enter on macOS), and automated tests check your code and mark each test as passed or failed.
In this exercise, the tests start your app themselves and call it with real HTTP requests, the way curl -i did in the lessons. They read each response’s status, headers, and body, and the lines your code logs with console.log() while each request is open. So you don’t need to call app.listen() or run anything in a terminal.
The express your file imports is a smaller version of the package, with what the lessons have used so far, and ./shoes.ts holds the shoe shelf.