Readme.md
This file
Path
Readme.md
143 lines · 4.6 KiB · Markdown
Last changed by
#express on freenodeTj Holowaychukbefore adoptionf0277d3
History of this fileTake it
The walk stopped after 200 commits: lines older than 99b49d2 point at it.
updated docsTj Holowaychukbefore adoption99b49d2
lines 1–18why, 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 express18npm 1.x docsTj Holowaychukbefore adoption0cb8668
lines 19–22why, one step back19or to access the `express(1)` executable install globally:2021 $ npm install -g express22added quick start to guideTj Holowaychukbefore adoption723774a
line 23why, one step back23## Quick Startexpress(1) usage docsTj Holowaychukbefore adoptionc3fbd3f
lines 24–39why, one step back2425 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.js39updated docsTj Holowaychukbefore adoption99b49d2
lines 40–77why, one step back40## 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## Contributors6869The following are the major contributors of Express (in no specific order).7071 * TJ Holowaychuk ([visionmedia](http://github.com/visionmedia))72 * Ciaran Jessup ([ciaranj](http://github.com/ciaranj))73 * Aaron Heckmann ([aheckmann](http://github.com/aheckmann))74 * Guillermo Rauch ([guille](http://github.com/guille))7576## More Information77#express on freenodeTj Holowaychukbefore adoptionf0277d3
line 78why, one step back78 * #express on freenodelink to express-exposeTj Holowaychukbefore adoption961146a
line 79why, one step back79 * [express-expose](http://github.com/visionmedia/express-expose) expose objects, functions, modules and more to client-side js with easeupdated docsTj Holowaychukbefore adoption99b49d2
lines 80–82why, one step back80 * [express-configure](http://github.com/visionmedia/express-configuration) async configuration support81 * [express-messages](http://github.com/visionmedia/express-messages) flash notification rendering helper82 * [express-namespace](http://github.com/visionmedia/express-namespace) namespaced route supportlinkTj Holowaychukbefore adoption15d4047
line 83why, one step back83 * [express-params](https://github.com/visionmedia/express-params) param pre-condition functionsexpress-mongoose linkTj Holowaychukbefore adoption5b33788
line 84why, one step back84 * [express-mongoose](https://github.com/LearnBoost/express-mongoose) plugin for easy rendering of Mongoose async Query resultsupdated docsTj Holowaychukbefore adoption99b49d2
lines 85–87why, one step back85 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates86 * [Google Group](http://groups.google.com/group/express-js) for discussion87 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)"Japanese Documentation" in Japanese 日本語ドキュメンテーション :)Tj Holowaychukbefore adoption40ccb59
line 88why, one step back88 * [日本語ドキュメンテーション](http://hideyukisaito.com/doc/expressjs/) by [hideyukisaito](https://github.com/hideyukisaito)updated docsTj Holowaychukbefore adoption99b49d2
lines 89–99why, one step back89 * Screencast - [Introduction](http://bit.ly/eRYu0O)90 * Screencast - [View Partials](http://bit.ly/dU13Fx)91 * Screencast - [Route Specific Middleware](http://bit.ly/hX4IaH)92 * Screencast - [Route Path Placeholder Preconditions](http://bit.ly/eNqmVs)9394## Node Compatibility9596Express 1.x is compatible with node 0.2.x and connect < 1.0.9798Express 2.x is compatible with node 0.4.x and connect 1.x99Merge branch 'refactor/dev-deps'Tj Holowaychukbefore adoption7999386
lines 100–119why, one step back100## Viewing Examples101102First install the dev dependencies to install all the example / test suite deps:103104 $ npm install105106then run whichever tests you want:107108 $ node examples/jade/app.js109110## Running Tests111112To run the test suite first invoke the following command within the repo, installing the development dependencies:113114 $ npm install115116then run the tests:117118 $ make test119updated docsTj Holowaychukbefore adoption99b49d2
lines 120–143why, one step back120## License 121122(The MIT License)123124Copyright (c) 2009-2011 TJ Holowaychuk <tj@vision-media.ca>125126Permission is hereby granted, free of charge, to any person obtaining127a copy of this software and associated documentation files (the128'Software'), to deal in the Software without restriction, including129without limitation the rights to use, copy, modify, merge, publish,130distribute, sublicense, and/or sell copies of the Software, and to131permit persons to whom the Software is furnished to do so, subject to132the following conditions:133134The above copyright notice and this permission notice shall be135included in all copies or substantial portions of the Software.136137THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,138EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF139MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.140IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY141CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,142TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE143SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.