This is the rapid-fire revision sheet for the Express folder.
Express is a minimal web framework for Node.js that simplifies routing, middleware, and HTTP response handling.
Because it removes repetitive boilerplate and provides a cleaner abstraction for common web server tasks.
Middleware is a function in the request pipeline that can inspect the request, modify it, end the response, or pass control onward.
req.params comes from the path, req.query comes from the query string, and req.body comes from the parsed request payload.
Because Express executes middleware in registration order.
Clear resource-based routes, proper HTTP methods, consistent status codes, and predictable response design.
To keep HTTP concerns separate from business logic and make the code easier to test and maintain.
Wrap async handlers and forward rejections to centralized error middleware.
It keeps error responses consistent and prevents duplicated logic across routes.
Use validation, authentication middleware, secure headers, rate limiting, dependency hygiene, and careful error responses.
Blocking the event loop inside handlers or middleware with slow synchronous work.