Express in nodejs

Express is a minimal, flexible Node.js web framework. It provides routing, middleware support, and HTTP utilities for building APIs and web applications. Its simplicity and large ecosystem make it the most popular Node.js framework.

Example

const express = require('express');
const app = express();

app.get('/api/users', (req, res) => {
  res.json([{ id: 1, name: 'Alice' }]);
});

app.listen(3000);

Express handles HTTP routing and sends JSON responses with minimal setup.