Skip to content
Myr

Readme.md

This file

Path

Readme.md

128 lines · 4.5 KiB · Markdown

Last changed by

build: add coverage reportingDouglas Christopher Wilsonbefore adoption1b3fb0a

History of this file

Take it

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

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

line 2why, one step back
2

docsTJ Holowaychukbefore adoption9cbcf23

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

build: add coverage reportingDouglas Christopher Wilsonbefore adoption1b3fb0a

line 5why, one step back
5 [![NPM version](https://badge.fury.io/js/express.svg)](http://badge.fury.io/js/express) [![Build Status](https://travis-ci.org/visionmedia/express.svg?branch=master)](https://travis-ci.org/visionmedia/express) [![Coverage Status](https://img.shields.io/coveralls/visionmedia/express.svg)](https://coveralls.io/r/visionmedia/express) [![Gittip](http://img.shields.io/gittip/visionmedia.svg)](https://www.gittip.com/visionmedia/)

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

lines 54–56why, one step back
54 it a great solution for single page applications, web sites, hybrids, or public
55 HTTP APIs.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

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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)

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

lines 66–74why, 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)70 * [Русскоязычная документация](http://jsman.ru/express/)71 * Run express examples [online](https://runnable.com/express)7273## 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:

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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:

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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>

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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:

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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:

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

line 96why, one step back
96

build: improve platform portabilityDouglas Christopher Wilsonbefore adoption1717516

lines 97–99why, one step back
97```sh
98$ npm test99```

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

lines 100–102why, one step back
100
101## Contributors102

replace old contributors info with github's contributorsJonathan Ongbefore adoptionbb157c0

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

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

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