Skip to content
Myr

Readme.md

This file

Path

Readme.md

275 lines · 9.7 KiB · Markdown

Last changed by

doc: update express app example (#6718)Shivam Sharmabefore adoptionaa90794

History of this file

Take it

The walk stopped after 200 commits: lines older than eabd456 point at it.

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 1why, one step back
1[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://expressjs.com/)

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 2why, one step back
2

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 3why, one step back
3**Fast, unopinionated, minimalist web framework for [Node.js](https://nodejs.org).**

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 4why, one step back
4

update contributing and COC links (#6601)shubham oulkarbefore adoptionb52ff7c

line 5why, one step back
5**This project has a [Code of Conduct].**

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 6why, one step back
6

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 7–8why, one step back
7## Table of contents
8

fix(docs): move documentation and charters to the discussions and .github … (#6427)Sebastian Beltranbefore adoption52872b8

lines 9–24why, one step back
9- [Table of contents](#table-of-contents)
10- [Installation](#installation)11- [Features](#features)12- [Docs \& Community](#docs--community)13- [Quick Start](#quick-start)14- [Philosophy](#philosophy)15- [Examples](#examples)16- [Contributing](#contributing)17 - [Security Issues](#security-issues)18 - [Running Tests](#running-tests)19- [Current project team members](#current-project-team-members)20 - [TC (Technical Committee)](#tc-technical-committee)21 - [TC emeriti members](#tc-emeriti-members)22 - [Triagers](#triagers)23 - [Emeritus Triagers](#emeritus-triagers)24- [License](#license)

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 25–28why, one step back
25
2627[![NPM Version][npm-version-image]][npm-url]28[![NPM Downloads][npm-downloads-image]][npm-downloads-url]

fix(docs): move documentation and charters to the discussions and .github … (#6427)Sebastian Beltranbefore adoption52872b8

lines 29–30why, one step back
29[![Linux Build][github-actions-ci-image]][github-actions-ci-url]
30[![Test Coverage][coveralls-image]][coveralls-url]

Merge branch 'master' into 5-mergectcpipbefore adoptionea49706

line 31why, one step back
31[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer]

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

line 32why, one step back
32

Merge branch 'master' into 5-mergectcpipbefore adoptionea49706

line 33why, one step back
33

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 34why, one step back
34```js

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 35–36why, one step back
35import express from 'express'
36

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

line 37why, one step back
37const app = express()

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 38why, one step back
38

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 39why, one step back
39app.get('/', (req, res) => {

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 40–42why, one step back
40 res.send('Hello World')
41})42

doc: update express app example (#6718)Shivam Sharmabefore adoptionaa90794

lines 43–45why, one step back
43app.listen(3000, () => {
44 console.log('Server is running on http://localhost:3000')45})

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 46–47why, one step back
46```
47

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 48why, one step back
48## Installation

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 49why, one step back
49

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 50–53why, one step back
50This is a [Node.js](https://nodejs.org/en/) module available through the
51[npm registry](https://www.npmjs.com/).5253Before installing, [download and install Node.js](https://nodejs.org/en/download/).

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 54why, one step back
54Node.js 18 or higher is required.

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

line 55why, one step back
55

Merge tag '4.17.2'Douglas Christopher Wilsonbefore adoptionc7d528c

lines 56–58why, one step back
56If this is a brand new project, make sure to create a `package.json` first with
57the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).58

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 59–61why, one step back
59Installation is done using the
60[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):61

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 62–63why, one step back
62```bash
63npm install express

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 64why, one step back
64```

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

line 65why, one step back
65

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 66why, one step back
66Follow [our installing guide](https://expressjs.com/en/starter/installing.html)

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

line 67why, one step back
67for more information.

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 68–80why, one step back
68
69## Features7071 * Robust routing72 * Focus on high performance73 * Super-high test coverage74 * HTTP helpers (redirection, caching, etc)75 * View system supporting 14+ template engines76 * Content negotiation77 * Executable for generating applications quickly7879## Docs & Community80

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 81why, one step back
81 * [Website and Documentation](https://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)]

Merge tag '4.15.4'Douglas Christopher Wilsonbefore adoptionc319fe2

line 82why, one step back
82 * [GitHub Organization](https://github.com/expressjs) for Official Middleware & Modules

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 83why, one step back
83 * [Github Discussions](https://github.com/expressjs/discussions) for discussion on the development and usage of Express

Merge tag '4.14.0'Douglas Christopher Wilsonbefore adoption1dbfee6

line 84why, one step back
84

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 85why, one step back
85**PROTIP** Be sure to read the [migration guide to v5](https://expressjs.com/en/guide/migrating-5)

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 86–92why, one step back
86
87## Quick Start8889 The quickest way to get started with express is to utilize the executable [`express(1)`](https://github.com/expressjs/generator) to generate an application as shown below:9091 Install the executable. The executable's major version will match Express's:92

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 93–94why, one step back
93```bash
94npm install -g express-generator@4

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 95–98why, one step back
95```
9697 Create the app:98

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 99–100why, one step back
99```bash
100express /tmp/foo && cd /tmp/foo

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 101–104why, one step back
101```
102103 Install dependencies:104

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 105–106why, one step back
105```bash
106npm install

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 107–110why, one step back
107```
108109 Start the server:110

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 111–112why, one step back
111```bash
112npm start

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 113–114why, one step back
113```
114

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

lines 115–116why, one step back
115 View the website at: http://localhost:3000
116

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 117–119why, one step back
117## Philosophy
118119 The Express philosophy is to provide small, robust tooling for HTTP servers, making

Merge tag '4.17.2'Douglas Christopher Wilsonbefore adoptionc7d528c

line 120why, one step back
120 it a great solution for single page applications, websites, hybrids, or public

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 121–123why, one step back
121 HTTP APIs.
122123 Express does not force you to use any specific ORM or template engine. With support for over

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 124why, one step back
124 14 template engines via [@ladjs/consolidate](https://github.com/ladjs/consolidate),

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 125–128why, one step back
125 you can quickly craft your perfect framework.
126127## Examples128

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 129why, one step back
129 To view the examples, clone the Express repository:

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 130why, one step back
130

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 131–132why, one step back
131```bash
132git clone https://github.com/expressjs/express.git --depth 1 && cd express

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 133–134why, one step back
133```
134

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 135–140why, one step back
135 Then install the dependencies:
136137```bash138npm install139```140

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 141–142why, one step back
141 Then run whichever example you want:
142

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 143–144why, one step back
143```bash
144node examples/content-negotiation

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 145–146why, one step back
145```
146

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 147why, one step back
147## Contributing

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 148why, one step back
148

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 149–152why, one step back
149The Express.js project welcomes all constructive contributions. Contributions take many forms,
150from code for bug fixes and enhancements, to additions and fixes to documentation, additional151tests, triaging incoming pull requests and issues, and more!152

update contributing and COC links (#6601)shubham oulkarbefore adoptionb52ff7c

line 153why, one step back
153See the [Contributing Guide] for more technical details on contributing.

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 154–156why, one step back
154
155### Security Issues156

fix(docs): move documentation and charters to the discussions and .github … (#6427)Sebastian Beltranbefore adoption52872b8

line 157why, one step back
157If you discover a security vulnerability in Express, please see [Security Policies and Procedures](SECURITY.md).

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 158–160why, one step back
158
159### Running Tests160

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 161why, one step back
161To run the test suite, first install the dependencies:

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 162why, one step back
162

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 163–164why, one step back
163```bash
164npm install

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 165–166why, one step back
165```
166

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

lines 167–172why, one step back
167Then run `npm test`:
168169```bash170npm test171```172

fix(docs): move documentation and charters to the discussions and .github … (#6427)Sebastian Beltranbefore adoption52872b8

line 173why, one step back
173## Current project team members

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 174why, one step back
174

fix(docs): move documentation and charters to the discussions and .github … (#6427)Sebastian Beltranbefore adoption52872b8

lines 175–176why, one step back
175For information about the governance of the express.js project, see [GOVERNANCE.md](https://github.com/expressjs/discussions/blob/HEAD/docs/GOVERNANCE.md).
176

Merge tag '4.16.4'Douglas Christopher Wilsonbefore adoption302a615

line 177why, one step back
177The original author of Express is [TJ Holowaychuk](https://github.com/tj)

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 178why, one step back
178

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

line 179why, one step back
179[List of all contributors](https://github.com/expressjs/express/graphs/contributors)

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

line 180why, one step back
180

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 181–207why, one step back
181### TC (Technical Committee)
182183* [UlisesGascon](https://github.com/UlisesGascon) - **Ulises Gascón** (he/him)184* [jonchurch](https://github.com/jonchurch) - **Jon Church**185* [wesleytodd](https://github.com/wesleytodd) - **Wes Todd**186* [LinusU](https://github.com/LinusU) - **Linus Unnebäck**187* [blakeembrey](https://github.com/blakeembrey) - **Blake Embrey**188* [sheplu](https://github.com/sheplu) - **Jean Burellier**189* [crandmck](https://github.com/crandmck) - **Rand McKinney**190* [ctcpip](https://github.com/ctcpip) - **Chris de Almeida**191192<details>193<summary>TC emeriti members</summary>194195#### TC emeriti members196197 * [dougwilson](https://github.com/dougwilson) - **Douglas Wilson**198 * [hacksparrow](https://github.com/hacksparrow) - **Hage Yaapa**199 * [jonathanong](https://github.com/jonathanong) - **jongleberry**200 * [niftylettuce](https://github.com/niftylettuce) - **niftylettuce**201 * [troygoode](https://github.com/troygoode) - **Troy Goode**202</details>203204205### Triagers206207* [aravindvnair99](https://github.com/aravindvnair99) - **Aravind Nair**

Add @bjohansebas to the triage team (#6009)Ulises Gascónbefore adoption3e1a1ce

line 208why, one step back
208* [bjohansebas](https://github.com/bjohansebas) - **Sebastian Beltran**

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 209–210why, one step back
209* [carpasse](https://github.com/carpasse) - **Carlos Serrano**
210* [CBID2](https://github.com/CBID2) - **Christine Belzie**

docs: add @dpopp07 to the triage team (#6352)Ulises Gascónbefore adoption9cbe2c2

line 211why, one step back
211* [dpopp07](https://github.com/dpopp07) - **Dustin Popp**

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 212–213why, one step back
212* [UlisesGascon](https://github.com/UlisesGascon) - **Ulises Gascón** (he/him)
213* [3imed-jaberi](https://github.com/3imed-jaberi) - **Imed Jaberi**

Merge tag '4.20.0' into 5.0Wes Toddbefore adoptione5feb9f

line 214why, one step back
214* [IamLizu](https://github.com/IamLizu) - **S M Mahmudul Hasan** (he/him)

docs: add @Phillip9587 to the triage teamSebastian Beltranbefore adoption3bbffdc

line 215why, one step back
215* [Phillip9587](https://github.com/Phillip9587) - **Phillip Barta**

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

line 216why, one step back
216* [Sushmeet](https://github.com/Sushmeet) - **Sushmeet Sunger**

docs: add @rxmarbles to the triage team (#6151)Ulises Gascónbefore adoption39f5d63

line 217why, one step back
217* [rxmarbles](https://github.com/rxmarbles) **Rick Markins** (He/him)

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 218–249why, one step back
218
219<details>220<summary>Triagers emeriti members</summary>221222#### Emeritus Triagers223224 * [AuggieH](https://github.com/AuggieH) - **Auggie Hudak**225 * [G-Rath](https://github.com/G-Rath) - **Gareth Jones**226 * [MohammadXroid](https://github.com/MohammadXroid) - **Mohammad Ayashi**227 * [NawafSwe](https://github.com/NawafSwe) - **Nawaf Alsharqi**228 * [NotMoni](https://github.com/NotMoni) - **Moni**229 * [VigneshMurugan](https://github.com/VigneshMurugan) - **Vignesh Murugan**230 * [davidmashe](https://github.com/davidmashe) - **David Ashe**231 * [digitaIfabric](https://github.com/digitaIfabric) - **David**232 * [e-l-i-s-e](https://github.com/e-l-i-s-e) - **Elise Bonner**233 * [fed135](https://github.com/fed135) - **Frederic Charette**234 * [firmanJS](https://github.com/firmanJS) - **Firman Abdul Hakim**235 * [getspooky](https://github.com/getspooky) - **Yasser Ameur**236 * [ghinks](https://github.com/ghinks) - **Glenn**237 * [ghousemohamed](https://github.com/ghousemohamed) - **Ghouse Mohamed**238 * [gireeshpunathil](https://github.com/gireeshpunathil) - **Gireesh Punathil**239 * [jake32321](https://github.com/jake32321) - **Jake Reed**240 * [jonchurch](https://github.com/jonchurch) - **Jon Church**241 * [lekanikotun](https://github.com/lekanikotun) - **Troy Goode**242 * [marsonya](https://github.com/marsonya) - **Lekan Ikotun**243 * [mastermatt](https://github.com/mastermatt) - **Matt R. Wilson**244 * [maxakuru](https://github.com/maxakuru) - **Max Edell**245 * [mlrawlings](https://github.com/mlrawlings) - **Michael Rawlings**246 * [rodion-arr](https://github.com/rodion-arr) - **Rodion Abdurakhimov**247 * [sheplu](https://github.com/sheplu) - **Jean Burellier**248 * [tarunyadav1](https://github.com/tarunyadav1) - **Tarun yadav**249 * [tunniclm](https://github.com/tunniclm) - **Mike Tunnicliffe**

docs: update emeritus triagers (#6345)Ulises Gascónbefore adoption59703c2

lines 250–254why, one step back
250 * [enyoghasim](https://github.com/enyoghasim) - **David Enyoghasim**
251 * [0ss](https://github.com/0ss) - **Salah**252 * [import-brain](https://github.com/import-brain) - **Eric Cheng** (he/him)253 * [dakshkhetan](https://github.com/dakshkhetan) - **Daksh Khetan** (he/him)254 * [lucasraziel](https://github.com/lucasraziel) - **Lucas Soares Do Rego**

fix(docs): remove @mertcanaltin from Triagers (#6408)Mert Can Altinbefore adoptioncb4c56e

line 255why, one step back
255 * [mertcanaltin](https://github.com/mertcanaltin) - **Mert Can Altin**

fix(docs): move documentation and charters to the discussions and .github … (#6427)Sebastian Beltranbefore adoption52872b8

line 256why, one step back
256

Merge branch 'master' into 5.0ctcpipbefore adoptionc96c690

lines 257–259why, one step back
257</details>
258259

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 260why, one step back
260## License

Fix handling of URLs containing :// in the pathAria Stewartbefore adoptioneabd456

lines 261–263why, one step back
261
262 [MIT](LICENSE)263

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 264why, one step back
264[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/express/master

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

line 265why, one step back
265[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master

docs: update readme (#5994)Sebastian Beltranbefore adoption508c740

line 266why, one step back
266[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=CI

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 267–271why, one step back
267[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml
268[npm-downloads-image]: https://badgen.net/npm/dm/express269[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true270[npm-url]: https://npmjs.org/package/express271[npm-version-image]: https://badgen.net/npm/v/express

Merge tag '4.20.0' into 5.0Wes Toddbefore adoptione5feb9f

lines 272–273why, one step back
272[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/expressjs/express/badge
273[ossf-scorecard-visualizer]: https://ossf.github.io/scorecard-visualizer/#/projects/github.com/expressjs/express

update contributing and COC links (#6601)shubham oulkarbefore adoptionb52ff7c

lines 274–275why, one step back
274[Code of Conduct]: https://github.com/expressjs/.github/blob/HEAD/CODE_OF_CONDUCT.md
275[Contributing Guide]: https://github.com/expressjs/.github/blob/HEAD/CONTRIBUTING.md