NodeJsBuilding a Simple API with Express

Express is a lightweight framework for building web servers and APIs in Node.js. It simplifies handling routes, middleware, and requests/responses.

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

app.get('/', (req, res) => {
  res.send('Hello, Express!');
});

app.listen(3000, () => {
  console.log('Server running on http://localhost:3000');
});