Routing, middleware, error handling, and the Express interview essentials.
Preview — first 3 of 102 cards
What is Express?
A minimal, unopinionated web framework for Node.js. It provides routing, middleware composition, and HTTP request/response helpers; it ships no ORM, templating, or auth by default.
const express = require('express');
const app = express();
app.listen(3000, () => console.log('listening'));
How do you create an app and start listening?
Call express() to get an app, register middleware/routes, then app.listen(port, callback). It returns an http.Server instance.
const app = express();
const server = app.listen(3000);
server.on('listening', () => console.log('up'));
What is the signature of a route handler?
(req, res, next) => {}. req holds request data, res builds the response, next passes control to the next matching handler.
app.get('/users/:id', (req, res, next) => {
res.json({ id: req.params.id });
});
99 more cards in this sheet
Unlock the Backend, Databases & AI bundle — ₹399
One-time payment. Unlocks this sheet and 14 other sheets in the bundle, plus a typeset PDF of each.
Unlock the bundle
See all bundles
Or get all 76 sheets for ₹999 — one payment, every future sheet included.