Skip to content
Myr

Readme.md

This file

Path

Readme.md

135 lines · 4.2 KiB · Markdown

Last changed by

docs: fix Gratipay linksJaime Agudobefore adoption1c96e18

History of this file

Take it

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

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 2why, one step back
2

docs: fix nodejs.org linkRyan Seysbefore adoption4fe1073

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

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 4why, one step back
4

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 5–8why, one step back
5 [![NPM Version][npm-image]][npm-url]
6 [![NPM Downloads][downloads-image]][downloads-url]7 [![Build Status][travis-image]][travis-url]8 [![Test Coverage][coveralls-image]][coveralls-url]

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

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

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 11–12why, one step back
11var express = require('express')
12var app = express()

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 13why, one step back
13

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 14–16why, one step back
14app.get('/', function (req, res) {
15 res.send('Hello World')16})

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 17why, one step back
17

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 18why, one step back
18app.listen(3000)

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

lines 19–20why, one step back
19```
20

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 21why, one step back
21### Installation

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 22why, one step back
22

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 23–25why, one step back
23```bash
24$ npm install express25```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 26why, one step back
26

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 27–48why, one step back
27## Features
2829 * Robust routing30 * Focus on high performance31 * Super-high test coverage32 * HTTP helpers (redirection, caching, etc)33 * View system supporting 14+ template engines34 * Content negotiation35 * Executable for generating applications quickly3637## Docs & Community3839 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/strongloop/expressjs.com)]40 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC41 * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules42 * Visit the [Wiki](https://github.com/strongloop/express/wiki)43 * [Google Group](https://groups.google.com/group/express-js) for discussion44 * [Русскоязычная документация](http://jsman.ru/express/)45 * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)]4647**PROTIP** Be sure to read [Migrating from 3.x to 4.x](https://github.com/strongloop/express/wiki/Migrating-from-3.x-to-4.x) as well as [New features in 4.x](https://github.com/strongloop/express/wiki/New-features-in-4.x).48

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

lines 49–50why, one step back
49## Quick Start
50

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 51why, one step back
51 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:

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 52why, one step back
52

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 53why, one step back
53 Install the executable. The executable's major version will match Express's:

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 54why, one step back
54

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 55–57why, one step back
55```bash
56$ npm install -g express-generator@457```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 58why, one step back
58

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 59why, one step back
59 Create the app:

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 60why, one step back
60

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 61–63why, one step back
61```bash
62$ express /tmp/foo && cd /tmp/foo63```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 64why, one step back
64

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 65why, one step back
65 Install dependencies:

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 66why, one step back
66

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 67–69why, one step back
67```bash
68$ npm install69```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 70why, one step back
70

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 71–76why, one step back
71 Start the server:
7273```bash74$ npm start75```76

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

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

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

lines 85–86why, one step back
85 you can quickly craft your perfect framework.
86

docs: misc. tweaksFishrock123before adoption5f7a37e

line 87why, one step back
87## Examples

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 88why, one step back
88

docs: misc. tweaksFishrock123before adoption5f7a37e

line 89why, one step back
89 To view the examples, clone the Express repo & install the dependancies:

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 90why, one step back
90

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 91why, one step back
91```bash

Merge tag '3.16.7'Douglas Christopher Wilsonbefore adoption9eafaa2

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

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 93–95why, one step back
93$ cd express
94$ npm install95```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 96why, one step back
96

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 97why, one step back
97 Then run whichever example you want:

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 98why, one step back
98

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 99–101why, one step back
99```bash
100$ node examples/content-negotiation101```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 102why, one step back
102

docs: misc. tweaksFishrock123before adoption5f7a37e

line 103why, one step back
103## Tests

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 104why, one step back
104

docs: misc. tweaksFishrock123before adoption5f7a37e

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

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 106why, one step back
106

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 107–108why, one step back
107```bash
108$ npm install

docs: misc. tweaksFishrock123before adoption5f7a37e

line 109why, one step back
109$ npm test

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 110why, one step back
110```

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 111why, one step back
111

docs: misc. tweaksFishrock123before adoption5f7a37e

line 112why, one step back
112### People

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 113why, one step back
113

docs: visionmedia is now tj on GithubDouglas Christopher Wilsonbefore adoptione9539fc

line 114why, one step back
114The original author of Express is [TJ Holowaychuk](https://github.com/tj) [![TJ's Gratipay][gratipay-image-visionmedia]][gratipay-url-visionmedia]

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 115why, one step back
115

docs: misc. tweaksFishrock123before adoption5f7a37e

line 116why, one step back
116The current lead maintainer is [Douglas Christopher Wilson](https://github.com/dougwilson) [![Doug's Gratipay][gratipay-image-dougwilson]][gratipay-url-dougwilson]

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 117why, one step back
117

docs: misc. tweaksFishrock123before adoption5f7a37e

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

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

line 119why, one step back
119

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 120–122why, one step back
120### License
121122 [MIT](LICENSE)

docs: misc. tweaksFishrock123before adoption5f7a37e

lines 123–132why, one step back
123
124[npm-image]: https://img.shields.io/npm/v/express.svg?style=flat125[npm-url]: https://npmjs.org/package/express126[downloads-image]: https://img.shields.io/npm/dm/express.svg?style=flat127[downloads-url]: https://npmjs.org/package/express128[travis-image]: https://img.shields.io/travis/strongloop/express.svg?style=flat129[travis-url]: https://travis-ci.org/strongloop/express130[coveralls-image]: https://img.shields.io/coveralls/strongloop/express.svg?style=flat131[coveralls-url]: https://coveralls.io/r/strongloop/express?branch=master132[gratipay-image-visionmedia]: https://img.shields.io/gratipay/visionmedia.svg?style=flat

docs: fix Gratipay linksJaime Agudobefore adoption1c96e18

line 133why, one step back
133[gratipay-url-visionmedia]: https://gratipay.com/visionmedia/

docs: misc. tweaksFishrock123before adoption5f7a37e

line 134why, one step back
134[gratipay-image-dougwilson]: https://img.shields.io/gratipay/dougwilson.svg?style=flat

docs: fix Gratipay linksJaime Agudobefore adoption1c96e18

line 135why, one step back
135[gratipay-url-dougwilson]: https://gratipay.com/dougwilson/