Skip to content
Myr

Readme.md

This file

Path

Readme.md

128 lines · 3.8 KiB · Markdown

Last changed by

Merge tag '3.15.0'Douglas Christopher Wilsonbefore adoptionf34944c

History of this file

Take it

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

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

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).

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 4why, one step back
4

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 5why, one step back
5 [![NPM Version](https://badge.fury.io/js/express.svg)](https://badge.fury.io/js/express)

docs: move badgesDouglas Christopher Wilsonbefore adoptionfcbe68e

lines 6–7why, one step back
6 [![Build Status](https://travis-ci.org/visionmedia/express.svg?branch=master)](https://travis-ci.org/visionmedia/express)
7 [![Coverage Status](https://img.shields.io/coveralls/visionmedia/express.svg)](https://coveralls.io/r/visionmedia/express)

Merge tag '3.15.0'Douglas Christopher Wilsonbefore adoptionf34944c

line 8why, one step back
8 [![Gittip](http://img.shields.io/gittip/dougwilson.svg)](https://www.gittip.com/dougwilson/)

4.0.0-rc4Roman Shtylmanbefore adoptione367463

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()

4.0.0-rc4Roman Shtylmanbefore adoptione367463

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})

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 17why, one step back
17

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

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

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 22why, one step back
22

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 24why, one step back
24

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 25–27why, one step back
25```bash
26$ npm install express27```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

lines 28–30why, one step back
28
29## Quick Start30

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 32why, one step back
32

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 34why, one step back
34

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 35–37why, one step back
35```bash
36$ npm install -g express-generator@437```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 38why, one step back
38

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 40why, one step back
40

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 41–43why, one step back
41```bash
42$ express /tmp/foo && cd /tmp/foo43```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 44why, one step back
44

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 45why, one step back
45 Install dependencies:

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 46why, one step back
46

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 47–49why, one step back
47```bash
48$ npm install49```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 50why, one step back
50

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 51–56why, one step back
51 Start the server:
5253```bash54$ npm start55```56

4.0.0-rc4Roman Shtylmanbefore adoptione367463

lines 57–73why, one step back
57## Features
5859 * Robust routing60 * HTTP helpers (redirection, caching, etc)61 * View system supporting 14+ template engines62 * Content negotiation63 * Focus on high performance64 * Executable for generating applications quickly65 * High test coverage6667## Philosophy6869 The Express philosophy is to provide small, robust tooling for HTTP servers, making70 it a great solution for single page applications, web sites, hybrids, or public71 HTTP APIs.7273 Express does not force you to use any specific ORM or template engine. With support for over

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

lines 75–78why, one step back
75 you can quickly craft your perfect framework.
7677## More Information78

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 79–83why, one step back
79 * [Website and Documentation](http://expressjs.com/) - [[website repo](https://github.com/visionmedia/expressjs.com)]
80 * [Github Organization](https://github.com/expressjs) for Official Middleware & Modules81 * [#express](https://webchat.freenode.net/?channels=express) on freenode IRC82 * Visit the [Wiki](https://github.com/visionmedia/express/wiki)83 * [Google Group](https://groups.google.com/group/express-js) for discussion

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 84why, one step back
84 * [Русскоязычная документация](http://jsman.ru/express/)

docs: add expressjs.kr(expressjs.com in Korean)Young Jae Simbefore adoption04f3830

line 85why, one step back
85 * [한국어 문서](http://expressjs.kr) - [[website repo](https://github.com/Hanul/expressjs.kr)]

4.0.0-rc4Roman Shtylmanbefore adoptione367463

lines 86–89why, one step back
86 * Run express examples [online](https://runnable.com/express)
8788## Viewing Examples89

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 90why, one step back
90 Clone the Express repo, then install the dev dependencies to install all the example / test suite dependencies:

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 91why, one step back
91

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 92–96why, one step back
92```bash
93$ git clone git://github.com/visionmedia/express.git --depth 194$ cd express95$ npm install96```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 97why, one step back
97

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

4.0.0-rc4Roman Shtylmanbefore adoptione367463

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

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 102why, one step back
102 You can also view live examples here:

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 103why, one step back
103

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 104why, one step back
104 <a href="https://runnable.com/express" target="_blank"><img src="https://runnable.com/external/styles/assets/runnablebtn.png" style="width:67px;height:25px;"></a>

4.0.0-rc4Roman Shtylmanbefore adoptione367463

lines 105–107why, one step back
105
106## Running Tests107

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 108why, one step back
108 To run the test suite, first invoke the following command within the repo, installing the development dependencies:

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 109why, one step back
109

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 110–112why, one step back
110```bash
111$ npm install112```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 113why, one step back
113

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 114why, one step back
114 Then run the tests:

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 115why, one step back
115

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

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

Merge tag '3.7.0'Douglas Christopher Wilsonbefore adoption097cd0c

lines 117–118why, one step back
117$ npm test
118```

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 119why, one step back
119

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

line 120why, one step back
120### Contributors

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 121why, one step back
121

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 122–124why, one step back
122 * Author: [TJ Holowaychuk](https://github.com/visionmedia)
123 * Lead Maintainer: [Douglas Christopher Wilson](https://github.com/dougwilson)124 * [All Contributors](https://github.com/visionmedia/express/graphs/contributors)

4.0.0-rc4Roman Shtylmanbefore adoptione367463

line 125why, one step back
125

docs: cleanup readme, update package descriptionFishrock123before adoptionbd69085

lines 126–128why, one step back
126### License
127128 [MIT](LICENSE)