SuperAPI AI Directory

express

Coding & development

View repository

Updated 10-15 21:48

About this skill

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

  1. Core: express(), app.get/post, req/res, middleware (next); router and static.
  2. Common: cors, body-parser/json, helmet, morgan; error middleware and 404.
  3. 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