Skip to content
Myr

Readme.md

This file

Path

Readme.md

155 lines · 4.5 KiB · Markdown

Last changed by

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

History of this file

Take it

The walk stopped after 200 commits: lines older than c6e6203 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/)

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 2–4why, one step back
2
3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).4

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 5–6why, one step back
5 [![NPM Version][npm-image]][npm-url]
6 [![NPM Downloads][downloads-image]][downloads-url]

Merge tag '4.12.0'Douglas Christopher Wilsonbefore adoptionf6ec710

lines 7–8why, one step back
7 [![Linux Build][travis-image]][travis-url]
8 [![Windows Build][appveyor-image]][appveyor-url]

docs: misc. tweaksFishrock123before adoption5f7a37e

line 9why, one step back
9 [![Test Coverage][coveralls-image]][coveralls-url]

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 10–11why, one step back
10
11```js

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

lines 12–13why, one step back
12const express = require('express')
13const app = express()

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 14–21why, one step back
14
15app.get('/', function (req, res) {16 res.send('Hello World')17})1819app.listen(3000)20```21

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 22why, one step back
22## Installation

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 23why, one step back
23

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

lines 24–32why, one step back
24This is a [Node.js](https://nodejs.org/en/) module available through the
25[npm registry](https://www.npmjs.com/).2627Before installing, [download and install Node.js](https://nodejs.org/en/download/).28Node.js 0.10 or higher is required.2930Installation is done using the31[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):32

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 33–35why, one step back
33```bash
34$ npm install express35```

Merge tag '4.16.2'Douglas Christopher Wilsonbefore adoption62e12fe

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

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 39why, one step back
39

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 40–51why, one step back
40## Features
4142 * Robust routing43 * Focus on high performance44 * Super-high test coverage45 * HTTP helpers (redirection, caching, etc)46 * View system supporting 14+ template engines47 * Content negotiation48 * Executable for generating applications quickly4950## Docs & Community51

Merge tag '4.15.0'Douglas Christopher Wilsonbefore adoption501e24e

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

docs: misc. tweaksFishrock123before adoption5f7a37e

line 53why, one step back
53 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC

Merge tag '4.15.4'Douglas Christopher Wilsonbefore adoptionc319fe2

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

Merge tag '4.14.0'Douglas Christopher Wilsonbefore adoption1dbfee6

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

docs: misc. tweaksFishrock123before adoption5f7a37e

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

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

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

Merge tag '4.14.0'Douglas Christopher Wilsonbefore adoption1dbfee6

lines 58–59why, one step back
58
59**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 60why, one step back
60

Merge tag '4.15.4'Douglas Christopher Wilsonbefore adoptionc319fe2

line 61why, one step back
61### Security Issues

docs: misc. tweaksFishrock123before adoption5f7a37e

line 62why, one step back
62

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

lines 63–64why, one step back
63If you discover a security vulnerability in Express, please see [Security Policies and Procedures](Security.md).
64

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 65–92why, one step back
65## Quick Start
6667 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:6869 Install the executable. The executable's major version will match Express's:7071```bash72$ npm install -g express-generator@473```7475 Create the app:7677```bash78$ express /tmp/foo && cd /tmp/foo79```8081 Install dependencies:8283```bash84$ npm install85```8687 Start the server:8889```bash90$ npm start91```92

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

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

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 95–101why, one step back
95## Philosophy
9697 The Express philosophy is to provide small, robust tooling for HTTP servers, making98 it a great solution for single page applications, web sites, hybrids, or public99 HTTP APIs.100101 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 102why, one step back
102 14 template engines via [Consolidate.js](https://github.com/tj/consolidate.js),

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 103–104why, one step back
103 you can quickly craft your perfect framework.
104

docs: misc. tweaksFishrock123before adoption5f7a37e

line 105why, one step back
105## Examples

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 106why, one step back
106

Merge tag '4.12.4'Douglas Christopher Wilsonbefore adoptionf90e045

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

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 108–109why, one step back
108
109```bash

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

line 110why, one step back
110$ git clone git://github.com/expressjs/express.git --depth 1

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 111–116why, one step back
111$ cd express
112$ npm install113```114115 Then run whichever example you want:116

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 117–119why, one step back
117```bash
118$ node examples/content-negotiation119```

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 120why, one step back
120

docs: misc. tweaksFishrock123before adoption5f7a37e

line 121why, one step back
121## Tests

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 122why, one step back
122

Merge tag '4.12.4'Douglas Christopher Wilsonbefore adoptionf90e045

line 123why, one step back
123 To run the test suite, first install the dependencies, then run `npm test`:

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 124–126why, one step back
124
125```bash126$ npm install

docs: misc. tweaksFishrock123before adoption5f7a37e

line 127why, one step back
127$ npm test

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 128–129why, one step back
128```
129

Merge tag '4.17.1'Douglas Christopher Wilsonbefore adoption121fe99

lines 130–133why, one step back
130## Contributing
131132[Contributing Guide](Contributing.md)133

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 134why, one step back
134## People

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 135why, one step back
135

Merge tag '4.16.4'Douglas Christopher Wilsonbefore adoption302a615

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

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 137why, one step back
137

Merge tag '4.16.4'Douglas Christopher Wilsonbefore adoption302a615

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

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 139why, one step back
139

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

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

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

line 141why, one step back
141

Merge tag '4.11.1'Douglas Christopher Wilsonbefore adoption8a5ecd3

line 142why, one step back
142## License

perf: fix arguments reassign deopt in some res methodsDouglas Christopher Wilsonbefore adoptionc6e6203

lines 143–144why, one step back
143
144 [MIT](LICENSE)

docs: misc. tweaksFishrock123before adoption5f7a37e

line 145why, one step back
145

Merge tag '4.12.0'Douglas Christopher Wilsonbefore adoptionf6ec710

line 146why, one step back
146[npm-image]: https://img.shields.io/npm/v/express.svg

docs: misc. tweaksFishrock123before adoption5f7a37e

line 147why, one step back
147[npm-url]: https://npmjs.org/package/express

Merge tag '4.12.0'Douglas Christopher Wilsonbefore adoptionf6ec710

line 148why, one step back
148[downloads-image]: https://img.shields.io/npm/dm/express.svg

docs: misc. tweaksFishrock123before adoption5f7a37e

line 149why, one step back
149[downloads-url]: https://npmjs.org/package/express

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

lines 150–151why, one step back
150[travis-image]: https://img.shields.io/travis/expressjs/express/master.svg?label=linux
151[travis-url]: https://travis-ci.org/expressjs/express

Merge tag '4.12.0'Douglas Christopher Wilsonbefore adoptionf6ec710

lines 152–153why, one step back
152[appveyor-image]: https://img.shields.io/appveyor/ci/dougwilson/express/master.svg?label=windows
153[appveyor-url]: https://ci.appveyor.com/project/dougwilson/express

Merge tag '4.13.4'Douglas Christopher Wilsonbefore adoption7cafdb5

lines 154–155why, one step back
154[coveralls-image]: https://img.shields.io/coveralls/expressjs/express/master.svg
155[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master