Express.js is a web application framework for Node.js, designed for building web applications and APIs. It is the de facto standard server framework for Node.js. It provides a robust set of features for web and mobile applications, and is the most popular framework for building Node applications.

Example:

var express = require(‘express’);
var app = express();

app.get(‘/’, function (req, res) {
res.send(‘Hello World!’);
});

app.listen(3000, function () {
console.log(‘Example app listening on port 3000!’);
});

Leave a Reply

Your email address will not be published. Required fields are marked *