When to use this skill
Use this skill whenever the user wants to:
- Build a Node.js HTTP service with Express: routing, middleware, and static assets
- Configure CORS, body parsing, error handling, and deployment
How to use this skill
- Core: express(), app.get/post, req/res, middleware (next); router and static.
- Common: cors, body-parser/json, helmet, morgan; error middleware and 404.
- Reference:https://expressjs.com/
Best Practices
- Layered routing and middleware; use try/catch or wrappers for async errors.
- Security headers and CORS; use a reverse proxy and HTTPS in production.
Keywords
express, Node.js, middleware, routing