Software:Express.js

From HandWiki
Express.js
Original author(s)TJ Holowaychuk
Developer(s)OpenJS Foundation and others
Initial release16 November 2010; 15 years ago (2010-11-16)
Stable release4.18.1 (April 29, 2022; 4 years ago (2022-04-29)[1][2]) [±]
Written inJavaScript
PlatformNode.js
TypeWeb framework
LicenseMIT License

Express.js, or simply Express, is a back end web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.[3] It has been called the de facto standard server framework for Node.js.[4]

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 initial versions were created in early 2010, and milestone version 1 was released later that year.[7]

In June 2014, rights to manage the project were acquired by StrongLoop.[8] StrongLoop was acquired by IBM in September 2015;[9] in January 2016, IBM announced that it would place Express.js under the stewardship of the Node.js Foundation incubator.[10]

In July 2014, work began towards milestone version 5. After ten years of development it was released in October 2024.[11]

Features

Popularity

Express.js is used by Fox Sports, PayPal, Uber and IBM.[14]

Example

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.
const express = require('express');

// Initializing the app.
const app = 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');
});

See also

References

  1. "Express 4.x changelog" (in en). http://expressjs.com/en/changelog/4x.html. 
  2. https://github.com/expressjs/express/releases/latest
  3. "Express.js home page". https://expressjs.com. 
  4. Case study: How & why to build a consumer app with Node.js. VentureBeat.com.
  5. Holowaychuck, TJ. "Express 1.0beta". http://tjholowaychuk.tumblr.com/post/820103177/express-1-0beta. 
  6. "Mean.io: The Friendly & Fun Javascript Fullstack for your next web application". http://mean.io. 
  7. "Version History". ExpressJS. https://github.com/expressjs/express/blob/master/History.md. 
  8. "TJ Holowaychuk Passes Sponsorship of Express to StrongLoop". StrongLoop. https://strongloop.com/strongblog/tj-holowaychuk-sponsorship-of-express/. 
  9. "IBM snaps up StrongLoop to add Node.js smarts to BlueMix". IDG. 10 September 2015. http://www.infoworld.com/article/2982876/javascript/ibm-snaps-up-strongloop-to-add-nodejs-smarts-to-bluemix.html. 
  10. "Node.js Foundation to shepherd Express Web framework". IDG. 10 February 2016. http://www.infoworld.com/article/3031686/javascript/nodejs-foundation-to-shepherd-express-web-framework.html. 
  11. "Introducing Express v5: A New Era for the Node.js Framework". ExpressJS. https://expressjs.com/2024/10/15/v5-release.html. 
  12. "Guide: Routing". ExpressJS. https://expressjs.com/en/guide/routing.html. 
  13. "Express Never Ending Support Launched by HeroDevs and Express.js". ExpressJS. https://expressjs.com/2024/10/01/HeroDevs-partnership-announcement.html. 
  14. "Companies using Express" (in en). https://expressjs.com/en/resources/companies-using-express.html. 
  • No URL found. Please specify a URL here or add one to Wikidata.