Skip to content
Myr

Readme.md

This file

Path

Readme.md

166 lines · 5.3 KiB · Markdown

Last changed by

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

History of this file

Take it

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

docs: fix logo linkDouglas Christopher Wilsonbefore adoption3de4e42

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 2why, one step back
2

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 4why, one step back
4

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 5–7why, one step back
5 [![NPM Version][npm-version-image]][npm-url]
6 [![NPM Install Size][npm-install-size-image]][npm-install-size-url]7 [![NPM Downloads][npm-downloads-image]][npm-downloads-url]

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 8–9why, one step back
8
9```js

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

lines 10–11why, one step back
10const express = require('express')
11const app = express()

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 12–19why, one step back
12
13app.get('/', function (req, res) {14 res.send('Hello World')15})1617app.listen(3000)18```19

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 20why, one step back
20## Installation

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 21why, one step back
21

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 22–27why, one step back
22This is a [Node.js](https://nodejs.org/en/) module available through the
23[npm registry](https://www.npmjs.com/).2425Before installing, [download and install Node.js](https://nodejs.org/en/download/).26Node.js 0.10 or higher is required.27

Merge tag '4.17.2'Douglas Christopher Wilsonbefore adoptionc7d528c

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

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

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

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 35–36why, one step back
35$ npm install express
36```

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 37–39why, one step back
37
38Follow [our installing guide](http://expressjs.com/en/starter/installing.html)39for more information.

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 40why, one step back
40

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 41–52why, one step back
41## Features
4243 * Robust routing44 * Focus on high performance45 * Super-high test coverage46 * HTTP helpers (redirection, caching, etc)47 * View system supporting 14+ template engines48 * Content negotiation49 * Executable for generating applications quickly5051## Docs & Community52

Merge tag '4.15.0'Douglas Christopher Wilsonbefore adoption501e24e

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

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 54why, one step back
54 * [#express](https://web.libera.chat/#express) on [Libera Chat](https://libera.chat) IRC

Merge tag '4.15.4'Douglas Christopher Wilsonbefore adoptionc319fe2

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

Merge tag '4.14.0'Douglas Christopher Wilsonbefore adoption1dbfee6

line 56why, one step back
56 * Visit the [Wiki](https://github.com/expressjs/express/wiki)

docs: misc. tweaksFishrock123before adoption5f7a37e

line 57why, one step back
57 * [Google Group](https://groups.google.com/group/express-js) for discussion

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

line 58why, one step back
58 * [Gitter](https://gitter.im/expressjs/express) for support and discussion

Merge tag '4.14.0'Douglas Christopher Wilsonbefore adoption1dbfee6

lines 59–60why, one step back
59
60**PROTIP** Be sure to read [Migrating from 3.x to 4.x](https://github.com/expressjs/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/expressjs/express/wiki/New-features-in-4.x).

docs: misc. tweaksFishrock123before adoption5f7a37e

line 61why, one step back
61

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 62–67why, one step back
62## Quick Start
6364 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:6566 Install the executable. The executable's major version will match Express's:67

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 68why, one step back
68```console

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 69–73why, one step back
69$ npm install -g express-generator@4
70```7172 Create the app:73

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 74why, one step back
74```console

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 75–79why, one step back
75$ express /tmp/foo && cd /tmp/foo
76```7778 Install dependencies:79

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 80why, one step back
80```console

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 81–85why, one step back
81$ npm install
82```8384 Start the server:85

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 86why, one step back
86```console

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 87–89why, one step back
87$ npm start
88```89

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 92–94why, one step back
92## Philosophy
9394 The Express philosophy is to provide small, robust tooling for HTTP servers, making

Merge tag '4.17.2'Douglas Christopher Wilsonbefore adoptionc7d528c

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

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

docs: visionmedia is now tj on GithubDouglas Christopher Wilsonbefore adoptione9539fc

line 99why, one step back
99 14 template engines via [Consolidate.js](https://github.com/tj/consolidate.js),

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 100–101why, one step back
100 you can quickly craft your perfect framework.
101

docs: misc. tweaksFishrock123before adoption5f7a37e

line 102why, one step back
102## Examples

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 103why, one step back
103

Merge tag '4.12.4'Douglas Christopher Wilsonbefore adoptionf90e045

line 104why, one step back
104 To view the examples, clone the Express repo and install the dependencies:

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 105why, one step back
105

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 106–107why, one step back
106```console
107$ git clone https://github.com/expressjs/express.git --depth 1

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 108–113why, one step back
108$ cd express
109$ npm install110```111112 Then run whichever example you want:113

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 114why, one step back
114```console

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 115–116why, one step back
115$ node examples/content-negotiation
116```

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 117why, one step back
117

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 118why, one step back
118## Contributing

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 119why, one step back
119

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 120–122why, one step back
120 [![Linux Build][github-actions-ci-image]][github-actions-ci-url]
121 [![Windows Build][appveyor-image]][appveyor-url]122 [![Test Coverage][coveralls-image]][coveralls-url]

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 123why, one step back
123

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 124–138why, one step back
124The Express.js project welcomes all constructive contributions. Contributions take many forms,
125from code for bug fixes and enhancements, to additions and fixes to documentation, additional126tests, triaging incoming pull requests and issues, and more!127128See the [Contributing Guide](Contributing.md) for more technical details on contributing.129130### Security Issues131132If you discover a security vulnerability in Express, please see [Security Policies and Procedures](Security.md).133134### Running Tests135136To run the test suite, first install the dependencies, then run `npm test`:137138```console

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 139why, one step back
139$ npm install

docs: misc. tweaksFishrock123before adoption5f7a37e

line 140why, one step back
140$ npm test

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 141–142why, one step back
141```
142

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 143why, one step back
143## People

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 144why, one step back
144

Merge tag '4.16.4'Douglas Christopher Wilsonbefore adoption302a615

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 146why, one step back
146

Merge tag '4.16.4'Douglas Christopher Wilsonbefore adoption302a615

line 147why, one step back
147The current lead maintainer is [Douglas Christopher Wilson](https://github.com/dougwilson)

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 148why, one step back
148

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

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

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

line 150why, one step back
150

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 151why, one step back
151## License

4.7.0Douglas Christopher Wilsonbefore adoption1a9a837

lines 152–153why, one step back
152
153 [MIT](LICENSE)

docs: misc. tweaksFishrock123before adoption5f7a37e

line 154why, one step back
154

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

line 155why, one step back
155[appveyor-image]: https://badgen.net/appveyor/ci/dougwilson/express/master?label=windows

Merge tag '4.12.0'Douglas Christopher Wilsonbefore adoptionf6ec710

line 156why, one step back
156[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

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

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

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

Merge tag '4.19.0' into 5.xWes Toddbefore adoptione9f9aae

lines 159–166why, one step back
159[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/express/master?label=linux
160[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml161[npm-downloads-image]: https://badgen.net/npm/dm/express162[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true163[npm-install-size-image]: https://badgen.net/packagephobia/install/express164[npm-install-size-url]: https://packagephobia.com/result?p=express165[npm-url]: https://npmjs.org/package/express166[npm-version-image]: https://badgen.net/npm/v/express