Skip to content
Myr

Readme.md

This file

Path

Readme.md

126 lines · 4.2 KiB · Markdown

Last changed by

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

History of this file

Take it

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 6–52why, 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```1718## Installation1920 $ npm install -g express2122## Quick Start2324 The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:2526 Create the app:2728 $ npm install -g express29 $ express /tmp/foo && cd /tmp/foo3031 Install dependencies:3233 $ npm install3435 Start the server:3637 $ node app3839## Features4041 * Built on [Connect](http://github.com/senchalabs/connect)42 * Robust routing43 * HTTP helpers (redirection, caching, etc)44 * View system supporting 14+ template engines45 * Content negotiation46 * Focus on high performance47 * Environment based configuration48 * Executable for generating applications quickly49 * High test coverage5051## Philosophy52

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

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

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

link to runnableTJ Holowaychukbefore adoption24087d9

line 56why, one step back
56

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

line 57why, one step back
57 Built on Connect, you can use _only_ what you need, and nothing more. Applications

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 58–59why, one step back
58 can be as big or as small as you like, even a single file. Express does
59 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 60why, one step back
60 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js),

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 61–64why, one step back
61 you can quickly craft your perfect framework.
6263## More Information64

README: add more links to expressjs.comJonathan Ongbefore adoption1dc4647

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 66–69why, one step back
66 * Join #express on freenode
67 * [Google Group](http://groups.google.com/group/express-js) for discussion68 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates69 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)

Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption6cfd01b

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

link to runnableTJ Holowaychukbefore adoption24087d9

line 71why, one step back
71 * Run express examples [online](https://runnable.com/express)

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 72–74why, one step back
72
73## Viewing Examples74

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

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 76–80why, one step back
76
77 $ git clone git://github.com/visionmedia/express.git --depth 178 $ cd express79 $ npm install80

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

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 82–83why, one step back
82
83 $ node examples/content-negotiation

replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0

line 84why, one step back
84

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

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

Merge pull request #1776 from ykumar6/masterJonathan Ongbefore adoption4cf868b

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 88–90why, one step back
88
89## Running Tests90

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

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 92–94why, one step back
92
93 $ npm install94

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

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 96–100why, one step back
96
97 $ make test9899## Contributors100

replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0

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

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

line 102why, one step back
102

link to runnableTJ Holowaychukbefore adoption24087d9

line 103why, one step back
103## License

update buffer-crc32TJ Holowaychukbefore adoption8bcdcfe

lines 104–126why, one step back
104
105(The MIT License)106107Copyright (c) 2009-2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;108109Permission is hereby granted, free of charge, to any person obtaining110a copy of this software and associated documentation files (the111'Software'), to deal in the Software without restriction, including112without limitation the rights to use, copy, modify, merge, publish,113distribute, sublicense, and/or sell copies of the Software, and to114permit persons to whom the Software is furnished to do so, subject to115the following conditions:116117The above copyright notice and this permission notice shall be118included in all copies or substantial portions of the Software.119120THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,121EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF122MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.123IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY124CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,125TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE126SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.