Skip to content
Myr

Readme.md

This file

Path

Readme.md

130 lines · 4.6 KiB · Markdown

Last changed by

npm start to start the server!Jonathan Ongbefore adoptiona0e6bb5

History of this file

Take it

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

README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647

line 1why, one step back
1[![express logo](http://f.cl.ly/items/0V2S1n0K1i3y1c122g04/Screen%20Shot%202012-04-11%20at%209.59.42%20AM.png)](http://expressjs.com/)

fix example portTJ Holowaychukbefore adoption579857c

line 2why, one step back
2

docsTJ Holowaychukbefore adoption9cbcf23

lines 3–5why, one step back
3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).
45 [![Build Status](https://secure.travis-ci.org/visionmedia/express.png)](http://travis-ci.org/visionmedia/express) [![Gittip](http://img.shields.io/gittip/visionmedia.png)](https://www.gittip.com/visionmedia/)

fix example portTJ Holowaychukbefore adoption579857c

lines 6–17why, one step back
6
7```js8var express = require('express');9var app = express();1011app.get('/', function(req, res){12 res.send('Hello World');13});1415app.listen(3000);16```17

Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8

lines 18–21why, one step back
18 Note that Express v4 release candidates have been released.
19 Please try it out, but not in production, and report any issues you may find here or to the appropriate repositories.20 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).21

fix example portTJ Holowaychukbefore adoption579857c

lines 22–23why, one step back
22## Installation
23

Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8

line 24why, one step back
24 $ npm install express

fix example portTJ Holowaychukbefore adoption579857c

lines 25–27why, one step back
25
26## Quick Start27

Update Readme.mdJonathan Ongbefore adoption45500fb

line 28why, one step back
28 The quickest way to get started with express is to utilize the executable [`express(1)`](http://github.com/expressjs/generator) to generate an application as shown below:

Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8

line 29why, one step back
29

Update Readme.mdJonathan Ongbefore adoption8472eff

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

Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8

line 31why, one step back
31

Update Readme.mdJonathan Ongbefore adoption8472eff

line 32why, one step back
32 $ npm install -g express-generator@3

fix example portTJ Holowaychukbefore adoption579857c

lines 33–43why, one step back
33
34 Create the app:3536 $ express /tmp/foo && cd /tmp/foo3738 Install dependencies:3940 $ npm install4142 Start the server:43

npm start to start the server!Jonathan Ongbefore adoptiona0e6bb5

line 44why, one step back
44 $ npm start

fix example portTJ Holowaychukbefore adoption579857c

lines 45–58why, one step back
45
46## Features4748 * Robust routing49 * HTTP helpers (redirection, caching, etc)50 * View system supporting 14+ template engines51 * Content negotiation52 * Focus on high performance53 * Environment based configuration54 * Executable for generating applications quickly55 * High test coverage5657## Philosophy58

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

line 59why, one step back
59 The Express philosophy is to provide small, robust tooling for HTTP servers, making

fix example portTJ Holowaychukbefore adoption579857c

lines 60–62why, one step back
60 it a great solution for single page applications, web sites, hybrids, or public
61 HTTP APIs.62

Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8

line 63why, one step back
63 Express does not force you to use any specific ORM or template engine. With support for over

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

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

fix example portTJ Holowaychukbefore adoption579857c

lines 65–68why, one step back
65 you can quickly craft your perfect framework.
6667## More Information68

README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647

line 69why, one step back
69 * [Website and Documentation](http://expressjs.com/) stored at [visionmedia/expressjs.com](https://github.com/visionmedia/expressjs.com)

fix example portTJ Holowaychukbefore adoption579857c

lines 70–71why, one step back
70 * Join #express on freenode
71 * [Google Group](http://groups.google.com/group/express-js) for discussion

Update Readme.md for Express 4Jonathan Ongbefore adoptione3b60e8

line 72why, one step back
72 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) and [defunctzombie](https://twitter.com/defunctzombie) on twitter for updates

fix example portTJ Holowaychukbefore adoption579857c

lines 73–78why, one step back
73 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)
74 * [Русскоязычная документация](http://jsman.ru/express/)75 * Run express examples [online](https://runnable.com/express)7677## Viewing Examples78

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

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

fix example portTJ Holowaychukbefore adoption579857c

lines 80–84why, one step back
80
81 $ git clone git://github.com/visionmedia/express.git --depth 182 $ cd express83 $ npm install84

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

line 85why, one step back
85Then run whichever tests you want:

fix example portTJ Holowaychukbefore adoption579857c

lines 86–87why, one step back
86
87 $ node examples/content-negotiation

replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0

line 88why, one step back
88

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

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

Merge pull request #1776 from ykumar6/masterJonathan Ongbefore adoption4cf868b

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

fix example portTJ Holowaychukbefore adoption579857c

lines 92–94why, one step back
92
93## Running Tests94

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

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

fix example portTJ Holowaychukbefore adoption579857c

lines 96–98why, one step back
96
97 $ npm install98

Merge pull request #1836 from fluxusfrequency/patch-1Roman Shtylmanbefore adoption2939075

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

fix example portTJ Holowaychukbefore adoption579857c

lines 100–104why, one step back
100
101 $ make test102103## Contributors104

replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0

line 105why, one step back
105 https://github.com/visionmedia/express/graphs/contributors

fix example portTJ Holowaychukbefore adoption579857c

lines 106–130why, one step back
106
107## License108109(The MIT License)110111Copyright (c) 2009-2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;112113Permission is hereby granted, free of charge, to any person obtaining114a copy of this software and associated documentation files (the115'Software'), to deal in the Software without restriction, including116without limitation the rights to use, copy, modify, merge, publish,117distribute, sublicense, and/or sell copies of the Software, and to118permit persons to whom the Software is furnished to do so, subject to119the following conditions:120121The above copyright notice and this permission notice shall be122included in all copies or substantial portions of the Software.123124THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,125EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF126MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.127IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY128CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,129TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE130SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.