Skip to content
Myr

Readme.md

This file

Path

Readme.md

147 lines · 4.9 KiB · Markdown

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 6b1dc31 point at it.

version -pre so people are less confusedTj Holowaychukbefore adoption6b1dc31

lines 1–147why, one step back
1
2# 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## 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 Information7778 * #express on freenode79 * [express-expose](http://github.com/visionmedia/express-expose) expose objects, functions, modules and more to client-side js with ease80 * [express-resource](http://github.com/visionmedia/express-resource) resourceful routing81 * [express-configure](http://github.com/visionmedia/express-configuration) async configuration support82 * [express-messages](http://github.com/visionmedia/express-messages) flash notification rendering helper83 * [express-namespace](http://github.com/visionmedia/express-namespace) namespaced route support84 * [express-params](https://github.com/visionmedia/express-params) param pre-condition functions85 * [express-mongoose](https://github.com/LearnBoost/express-mongoose) plugin for easy rendering of Mongoose async Query results86 * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates87 * [Google Group](http://groups.google.com/group/express-js) for discussion88 * Visit the [Wiki](http://github.com/visionmedia/express/wiki)89 * [日本語ドキュメンテーション](http://hideyukisaito.com/doc/expressjs/) by [hideyukisaito](https://github.com/hideyukisaito)90 * [Русскоязычная документация](http://express-js.ru/)91 * Screencast - [Introduction](http://bit.ly/eRYu0O)92 * Screencast - [View Partials](http://bit.ly/dU13Fx)93 * Screencast - [Route Specific Middleware](http://bit.ly/hX4IaH)94 * Screencast - [Route Path Placeholder Preconditions](http://bit.ly/eNqmVs)9596## Node Compatibility9798Express 1.x is compatible with node 0.2.x and connect < 1.0.99100Express 2.x is compatible with node 0.4.x and connect 1.x101102Express 3.x (_master_ branch) is compatible with node 0.6.x and connect 2.x103104## Viewing Examples105106First install the dev dependencies to install all the example / test suite deps:107108 $ npm install -d109110then run whichever tests you want:111112 $ node examples/jade/app.js113114## Running Tests115116To run the test suite first invoke the following command within the repo, installing the development dependencies:117118 $ npm install119120then run the tests:121122 $ make test123124## License 125126(The MIT License)127128Copyright (c) 2009-2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;129130Permission is hereby granted, free of charge, to any person obtaining131a copy of this software and associated documentation files (the132'Software'), to deal in the Software without restriction, including133without limitation the rights to use, copy, modify, merge, publish,134distribute, sublicense, and/or sell copies of the Software, and to135permit persons to whom the Software is furnished to do so, subject to136the following conditions:137138The above copyright notice and this permission notice shall be139included in all copies or substantial portions of the Software.140141THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,142EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF143MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.144IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY145CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,146TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE147SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.