So far, only the terminal talks to the API you start from: curl and your own scripts. Now, you’ll get it ready for real use: on any machine, from a web page, with a log you can follow.
Here’s where you’re headed, with the Elm Lane dog-walking co-op. Priya, a neighbor, built its booking page. In the finished project, it lists the week’s walks from the co-op’s API, on another port. And the API logs one JSON line for that request, each line wrapped here for display:
$ npm start
{"time":"2026-11-27T20:18:36.493Z","level":"info",
"message":"Elm Lane walks API on http://localhost:3000"}
{"time":"2026-11-27T20:18:39.359Z","level":"info",
"method":"GET","path":"/walks","status":200,
"duration_ms":8.2,
"request_id":"2e17680f-90d9-44af-9147-4b127c4f4f8c"}
The co-op’s six households share walks for each other’s dogs. Right now, the starting API has its port and data file written into the code. Priya’s page, on its own port, can’t read the API’s answers. And no owner’s phone number may ever reach a log.
What You’ll Learn
By the end of this course, you’ll be able to configure an Express API through environment variables. You’ll be able to let a browser front end on another origin call it. The browser checks your API’s answers against rules called CORS. And you’ll be able to log every request and error usefully, without leaking secrets or personal data. Finally, you’ll ready the whole walks API for Priya in a project.
Before You Start
You should know Express 5 routes, middleware and error handlers, in TypeScript. You’ll also use Zod and curl, a current LTS of Node.js, and Chrome, which the lessons use.
You don’t need to know CORS or structured logging yet: the course covers both. The starting project brings its own packages.
How the Course Works
The course mixes text lessons, short videos, and a coding exercise after each section. It ends with a project you build in steps, then explain to the RealJS mentor, an AI tutor. A quiz wraps up.
Below this video are the slides and a code download, with the starting and finished code. Next up is Read Settings From the Environment, where you move the port and data file out of the code.