The original author, TJ Holowaychuk, described it as a Sinatra-inspired server,[5] meaning that it is relatively minimal with many features available as plugins. Express is the back-end component of popular development stacks like the MEAN, MERN or MEVN stack, together with the MongoDB database software and a JavaScript front-end framework or library.[6]
History
Express.js was founded by TJ Holowaychuk. The first release, according to Express.js's GitHub repository, was on 22 May 2010. Version 0.12
In June 2014, rights to manage the project were acquired by StrongLoop.[7] StrongLoop was acquired by IBM in September 2015;[8] in January 2016, IBM announced that it would place Express.js under the stewardship of the Node.js Foundation incubator.[9]
The following program will respond to HTTP GET requests with the text 'Hi, your request has been received', and listen to the port the program is running on (in this case, port 2000).
// Importing the Express library.constexpress=require('express');// Initializing the app.constapp=express();// Getting the path request and sending the response with text.app.get('/',(req,res)=>{res.send('Hi, your request has been received');});// Listening on port 2000.app.listen(2000,()=>{console.log('listening at http://localhost:2000');});