express
Installation
SKILL.md
express
Build Express.js web servers and REST APIs.
Middleware System
- Chain request handlers via
app.use()andapp.VERB() - Order matters: middleware runs top-down
- Error middleware has 4 params:
(err, req, res, next)
Routing
- Express Router for modular route groups
- Route params
:idwithreq.params - Query strings with
req.query - Body parsing via
express.json()andexpress.urlencoded()