Readme.md
This file
Path
Readme.md
194 lines · 6.2 KiB · Markdown
Last changed by
update node support docsTJ Holowaychukbefore adoptione47d368
History of this fileTake it
The walk stopped after 200 commits: lines older than f98c112 point at it.
Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112
lines 1–90why, one step back12# Express3 4 Insanely fast (and small) server-side JavaScript web development framework5 built on [node](http://nodejs.org) and [Connect](http://github.com/senchalabs/connect).6 7 var app = express.createServer();8 9 app.get('/', function(req, res){10 res.send('Hello World');11 });12 13 app.listen(3000);1415## Installation1617 $ npm install express1819or to access the `express(1)` executable install globally:2021 $ npm install -g express2223## Quick Start2425 The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:2627 Create the app:2829 $ npm install -g express30 $ express /tmp/foo && cd /tmp/foo3132 Install dependencies:3334 $ npm install -d3536 Start the server:3738 $ node app.js3940## Features4142 * Robust routing43 * Redirection helpers44 * Dynamic view helpers45 * Content negotiation46 * Focus on high performance47 * View rendering and partials support48 * Environment based configuration49 * Session based flash notifications50 * Built on [Connect](http://github.com/senchalabs/connect)51 * High test coverage52 * Executable for generating applications quickly53 * Application level view options5455Via Connect:5657 * Session support58 * Cache API59 * Mime helpers60 * ETag support61 * Persistent flash notifications62 * Cookie support63 * JSON-RPC64 * Logging65 * and _much_ more!6667## More Information6869 * #express on freenode70 * [express-expose](http://github.com/visionmedia/express-expose) expose objects, functions, modules and more to client-side js with ease71 * [express-resource](http://github.com/visionmedia/express-resource) resourceful routing72 * [express-configure](http://github.com/visionmedia/express-configuration) async configuration support73 * [express-messages](http://github.com/visionmedia/express-messages) flash notification rendering helper74 * [express-namespace](http://github.com/visionmedia/express-namespace) namespaced route support75 * [express-params](https://github.com/visionmedia/express-params) param pre-condition functions76 * [express-mongoose](https://github.com/LearnBoost/express-mongoose) plugin for easy rendering of Mongoose async Query results77 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates78 * [Google Group](http://groups.google.com/group/express-js) for discussion79 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)80 * [日本語ドキュメンテーション](http://hideyukisaito.com/doc/expressjs/) by [hideyukisaito](https://github.com/hideyukisaito)81 * [Русскоязычная документация](http://express-js.ru/)82 * Screencast - [Introduction](http://bit.ly/eRYu0O)83 * Screencast - [View Partials](http://bit.ly/dU13Fx)84 * Screencast - [Route Specific Middleware](http://bit.ly/hX4IaH)85 * Screencast - [Route Path Placeholder Preconditions](http://bit.ly/eNqmVs)8687## Node Compatibility8889Express 1.x is compatible with node 0.2.x and connect < 1.0.90update node support docsTJ Holowaychukbefore adoptione47d368
line 91why, one step back91Express 2.x is compatible with node 0.4.x, node 0.6.x and connect 1.xAdded app.render() local precedence testTj Holowaychukbefore adoptionf98c112
lines 92–113why, one step back9293Express 3.x (_master_ branch) is compatible with node 0.6.x and connect 2.x9495## Viewing Examples9697First install the dev dependencies to install all the example / test suite deps:9899 $ npm install -d100101then run whichever tests you want:102103 $ node examples/jade/app.js104105## Running Tests106107To run the test suite first invoke the following command within the repo, installing the development dependencies:108109 $ npm install110111then run the tests:112113 $ make testreplaced short contrib list with git-summary(1) outputTJ Holowaychukbefore adoption5b1235a
lines 114–169why, one step back114115## Contributors116117```118project: express119commits: 3410120files : 230121authors: 122 1883 Tj Holowaychuk 55.2%123 1285 visionmedia 37.7%124 72 TJ Holowaychuk 2.1%125 54 Aaron Heckmann 1.6%126 34 csausdev 1.0%127 26 ciaranj 0.8%128 6 Guillermo Rauch 0.2%129 3 Dav Glass 0.1%130 3 Nick Poulden 0.1%131 2 Jake Gordon 0.1%132 2 Ben Weaver 0.1%133 2 Hunter Loftis 0.1%134 2 Benny Wong 0.1%135 2 Dave Hoover 0.1%136 2 Brian McKinney 0.1%137 2 Daniel Shaw 0.1%138 1 Masahiro Hayashi 0.0%139 1 Matt Colyer 0.0%140 1 Pau Ramon 0.0%141 1 Peter Rekdal Sunde 0.0%142 1 Raynos 0.0%143 1 Roman Shtylman 0.0%144 1 Teng Siong Ong 0.0%145 1 Viktor Kelemen 0.0%146 1 ctide 0.0%147 1 ewoudj 0.0%148 1 isaacs 0.0%149 1 mgutz 0.0%150 1 pikeas 0.0%151 1 shuwatto 0.0%152 1 Justin Lilly 0.0%153 1 Adam Sanderson 0.0%154 1 Andrii Kostenko 0.0%155 1 Arpad Borsos 0.0%156 1 Ashwin Purohit 0.0%157 1 Darren Torpey 0.0%158 1 Greg Ritter 0.0%159 1 Gregory Ritter 0.0%160 1 James Herdman 0.0%161 1 Joe McCann 0.0%162 1 Jonathan Dumaine 0.0%163 1 Jonathan Palardy 0.0%164 1 Jonathan Zacsh 0.0%165 1 8bitDesigner 0.0%166 1 Ken Sato 0.0%167 1 Maciej Małecki 0.0%168169```Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112
lines 170–194why, one step back170171## License 172173(The MIT License)174175Copyright (c) 2009-2011 TJ Holowaychuk <tj@vision-media.ca>176177Permission is hereby granted, free of charge, to any person obtaining178a copy of this software and associated documentation files (the179'Software'), to deal in the Software without restriction, including180without limitation the rights to use, copy, modify, merge, publish,181distribute, sublicense, and/or sell copies of the Software, and to182permit persons to whom the Software is furnished to do so, subject to183the following conditions:184185The above copyright notice and this permission notice shall be186included in all copies or substantial portions of the Software.187188THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,189EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF190MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.191IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY192CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,193TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE194SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.