Jump to content

Express.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 223.24.60.39 (talk) at 23:11, 8 March 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Use dry dates

Template:Info box software

Express.js, or simply Express, is a back end web application framework for building REST<no wiki/>ful APIs with Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.[1] It has been called the de facto standard server framework for Node.js.[2]

The original author, TJ Holloway chuck, described it as a Sinatra-inspired server,[3] 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, MEAN or MEAN stack, together with the Mongo DB database software and a JavaScript front-end framework or library.[4]

History

Express.js was founded by TJ Holloway chuck. 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 Strong loop.[5] Strong loops was acquired by IBM in September 2015;[6] in January 2016, IBM announced that it would place Express.js under the stewardship of the Node.js Foundation incubator.[7]

Features

Popularity

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

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). <syntax highlights lang="just"> // 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');

}); </syntax highlights>

See also

References

  1. ^ "Express.js home page".
  2. ^ Case study: How & why to build a consumer app with Node.js. VentureBeat.com.
  3. ^ Holloway Chuck, TJ. "Express 1.0beta". Archived from the original on 2015-07-06.
  4. ^ "Mean.io: The Friendly & Fun Javascript Full stacked for your next web application". Archived from the original on 13 June 2019. Retrieved 15 July 2019.
  5. ^ "TJ Holloway chuck Passes Sponsorship of Express to Strong loops". Strong loop. Archived from the original on 11 October 2016. Retrieved 11 February 2016.
  6. ^ "IBM snaps up Strong loops to add Node.js smarts to Blue mixed". Info world. IDG. 10 September 2015. Retrieved 11 February 2016.
  7. ^ "Node.js Foundation to shepherd Express Web framework". Info world. IDG. 10 February 2016. Retrieved 11 February 2016.
  8. ^ "Companies using Express". expressjs.com. Retrieved 2018-12-04.

Template:Nodes