Build HTTP APIs with routing, middleware, validation, controllers, and error handling.
Lessons
Log incoming requests in dev and production formats.
Request Logging with Morgan is easiest to learn by reading the example, changing it, and observing the result.
import express from 'express';
import morgan from 'morgan';
const app = express();
app.use(morgan('dev')); // logs method, url, status, response time
app.get('/api/lessons', (req, res) => res.json({ lessons: [] }));
app.listen(3000);Practice the Request Logging with Morgan example in a small scratch file, then explain what changed and why.