Readme.md
This file
Path
Readme.md
183 lines · 5.8 KiB · Markdown
Last changed by
Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption496ee40
History of this fileTake it
The walk stopped after 200 commits: lines older than 06db11c point at it.
removed old form exampleTJ Holowaychukbefore adoption06db11c
lines 1–2why, one step back12build status imageTJ Holowaychukbefore adoptionde10194
line 3why, one step back3 Fast, unopinionated, minimalist web framework for [node](http://nodejs.org). [](http://travis-ci.org/visionmedia/express)removed old form exampleTJ Holowaychukbefore adoption06db11c
lines 4–75why, one step back45```js6var express = require('express');7var app = express();89app.get('/', function(req, res){10 res.send('Hello World');11});1213app.listen(3000);14```1516## Installation1718 $ npm install -g express1920 To install the 3.0 alpha:21 22 $ npm install -g express@3.02324## Quick Start2526 The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:2728 Create the app:2930 $ npm install -g express31 $ express /tmp/foo && cd /tmp/foo3233 Install dependencies:3435 $ npm install3637 Start the server:3839 $ node app4041## Features4243 * Built on [Connect](http://github.com/senchalabs/connect)44 * Robust routing45 * HTTP helpers (redirection, caching, etc)46 * View system supporting 14+ template engines47 * Content negotiation48 * Focus on high performance49 * Environment based configuration50 * Executable for generating applications quickly51 * High test coverage5253## Philosophy5455 The Express philosophy is to provide small, robust tooling for HTTP servers. Making56 it a great solution for single page applications, web sites, hybrids, or public57 HTTP APIs.58 59 Built on Connect you can use _only_ what you need, and nothing more, applications60 can be as big or as small as you like, even a single file. Express does61 not force you to use any specific ORM or template engine. With support for over62 14 template engines via [Consolidate.js](http://github.com/visionmedia/consolidate.js)63 you can quickly craft your perfect framework.6465## More Information6667 * Join #express on freenode68 * [Google Group](http://groups.google.com/group/express-js) for discussion69 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates70 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)71 * [日本語ドキュメンテーション](http://hideyukisaito.com/doc/expressjs/) by [hideyukisaito](https://github.com/hideyukisaito)72 * [Русскоязычная документация](http://express-js.ru/)7374## Viewing Examples75Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption496ee40
line 76why, one step back76Clone the Express repo, then install the dev dependencies to install all the example / test suite deps:removed old form exampleTJ Holowaychukbefore adoption06db11c
line 77why, one step back77Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption496ee40
line 78why, one step back78 $ git clone git://github.com/visionmedia/express.git --depth 1removed old form exampleTJ Holowaychukbefore adoption06db11c
line 79why, one step back79 $ cd expressdocsTJ Holowaychukbefore adoption1763b07
line 80why, one step back80 $ npm installremoved old form exampleTJ Holowaychukbefore adoption06db11c
lines 81–183why, one step back8182then run whichever tests you want:8384 $ node examples/content-negotiation8586## Running Tests8788To run the test suite first invoke the following command within the repo, installing the development dependencies:8990 $ npm install9192then run the tests:9394 $ make test9596## Contributors9798```99project: express100commits: 3559101active : 468 days102files : 237103authors: 104 1891 Tj Holowaychuk 53.1%105 1285 visionmedia 36.1%106 182 TJ Holowaychuk 5.1%107 54 Aaron Heckmann 1.5%108 34 csausdev 1.0%109 26 ciaranj 0.7%110 21 Robert Sköld 0.6%111 6 Guillermo Rauch 0.2%112 3 Dav Glass 0.1%113 3 Nick Poulden 0.1%114 2 Randy Merrill 0.1%115 2 Benny Wong 0.1%116 2 Hunter Loftis 0.1%117 2 Jake Gordon 0.1%118 2 Brian McKinney 0.1%119 2 Roman Shtylman 0.1%120 2 Ben Weaver 0.1%121 2 Dave Hoover 0.1%122 2 Eivind Fjeldstad 0.1%123 2 Daniel Shaw 0.1%124 1 Matt Colyer 0.0%125 1 Pau Ramon 0.0%126 1 Pero Pejovic 0.0%127 1 Peter Rekdal Sunde 0.0%128 1 Raynos 0.0%129 1 Teng Siong Ong 0.0%130 1 Viktor Kelemen 0.0%131 1 ctide 0.0%132 1 8bitDesigner 0.0%133 1 isaacs 0.0%134 1 mgutz 0.0%135 1 pikeas 0.0%136 1 shuwatto 0.0%137 1 tstrimple 0.0%138 1 ewoudj 0.0%139 1 Adam Sanderson 0.0%140 1 Andrii Kostenko 0.0%141 1 Andy Hiew 0.0%142 1 Arpad Borsos 0.0%143 1 Ashwin Purohit 0.0%144 1 Benjen 0.0%145 1 Darren Torpey 0.0%146 1 Greg Ritter 0.0%147 1 Gregory Ritter 0.0%148 1 James Herdman 0.0%149 1 Jim Snodgrass 0.0%150 1 Joe McCann 0.0%151 1 Jonathan Dumaine 0.0%152 1 Jonathan Palardy 0.0%153 1 Jonathan Zacsh 0.0%154 1 Justin Lilly 0.0%155 1 Ken Sato 0.0%156 1 Maciej Małecki 0.0%157 1 Masahiro Hayashi 0.0%158```159160## License 161162(The MIT License)163164Copyright (c) 2009-2012 TJ Holowaychuk <tj@vision-media.ca>165166Permission is hereby granted, free of charge, to any person obtaining167a copy of this software and associated documentation files (the168'Software'), to deal in the Software without restriction, including169without limitation the rights to use, copy, modify, merge, publish,170distribute, sublicense, and/or sell copies of the Software, and to171permit persons to whom the Software is furnished to do so, subject to172the following conditions:173174The above copyright notice and this permission notice shall be175included in all copies or substantial portions of the Software.176177THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,178EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF179MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.180IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY181CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,182TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE183SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.