Express

Also known as: Express.js, ExpressJS

Express is a minimal HTTP framework for Node.js. Middleware chain, routing, and JSON APIs. Many higher-level Node frameworks sit on top of the same request / response model.

import express from "express";

const app = express();

app.get("/hello", (req, res) => {
  res.json({ message: `hello, ${req.query.name ?? "world"}` });
});

app.listen(3000);

← Back to CS Glossary