Readme.md
This file
Path
Readme.md
136 lines · 4.3 KiB · Markdown
Last changed by
Merge branch 'bin'visionmediabefore adoption12c2682
History of this fileTake it
The walk stopped after 200 commits: lines older than 3863a76 point at it.
Merge branch 'flash'visionmediabefore adoption3863a76
lines 1–14why, one step back12# Express3 4 Insanely fast (and small) server-side JavaScript web development framework5 built on **node.js** and the **V8 JavaScript engine**.67 * Visit the [Wiki](http://wiki.github.com/visionmedia/express) for documentation8 * Visit the [Google Group](http://groups.google.com/group/express-js) for discussion910## Features (so far)1112 * Sexy DSL with robust sinatra-like routing13 * High performance14 * Session supportUpdated feature listvisionmediabefore adoption088aa83
lines 15–16why, one step back15 * Cache API16 * RESTful HTTP clientMerge branch 'flash'visionmediabefore adoption3863a76
lines 17–18why, one step back17 * Mime helpers18 * Redirection helpersKinda updated feature list a bitvisionmediabefore adoption6805e4f
line 19why, one step back19 * Multipart file upload supportMerge branch 'flash'visionmediabefore adoption3863a76
lines 20–21why, one step back20 * Test helpers (mock requests etc)21 * Environment based configurationUpdated feature listvisionmediabefore adoption088aa83
lines 22–24why, one step back22 * Light-weight JavaScript class implementation via [class.js](http://github.com/visionmedia/class.js/)23 * Persistent flash messages24 * Route passingMerge branch 'flash'visionmediabefore adoption3863a76
line 25why, one step back25 * View support (ejs, haml, sass, etc)Added view partials to feature listvisionmediabefore adoptionfbbe136
line 26why, one step back26 * View partialsKinda updated feature list a bitvisionmediabefore adoption6805e4f
line 27why, one step back27 * Full test coverageUpdated feature listvisionmediabefore adoption088aa83
line 28why, one step back28 * Logger plugin with several formatsDocsvisionmediabefore adoption62b9a9e
line 29why, one step back29 * Upload size restrictionsKinda updated feature list a bitvisionmediabefore adoption6805e4f
line 30why, one step back30 * Extremely readable specsMerge branch 'integration'visionmediabefore adoption7441164
line 31why, one step back31 * Cookie supportMerge branch 'flash'visionmediabefore adoption3863a76
lines 32–34why, one step back32 33## Installation34Added kiwi installation docsvisionmediabefore adoption0c18ac5
lines 35–38why, one step back35 Install the [Kiwi package manager for nodejs](http://github.com/visionmedia/kiwi)36 and run:37 38 $ kiwi -v install expressMerge branch 'remove-kiwi'visionmediabefore adoption670b6cf
lines 39–40why, one step back39 40orMerge branch 'flash'visionmediabefore adoption3863a76
line 41why, one step back41Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf
lines 42–43why, one step back42 Install via git clone:43 Added Request#isXHR. Closes #229visionmediabefore adoption884d333
line 44why, one step back44 $ git clone git://github.com/visionmedia/express.git && cd express && git submodule update --initMerge branch 'remove-kiwi'visionmediabefore adoption670b6cf
line 45why, one step back45Merge branch 'flash'visionmediabefore adoption3863a76
lines 46–47why, one step back46## Performance47Benchmarks linkvisionmediabefore adoption9f48b32
line 48why, one step back48 Extensive performance enhancements have not yet been made,Merge branch 'integration'visionmediabefore adoption7441164
line 49why, one step back49 since we are focusing on the framework itself at the moment. Merge branch 'flash'visionmediabefore adoption3863a76
line 50why, one step back50 Benchmarks linkvisionmediabefore adoption9f48b32
line 51why, one step back51 However if you are interested view the premature [benchmarks for Express framework](http://vision-media.ca/resources/nodejs/express-nodejs-web-development-framework-performance).Merge branch 'flash'visionmediabefore adoption3863a76
lines 52–54why, one step back5253## Examples54Doc typovisionmediabefore adoption62779fc
line 55why, one step back55Below is a tiny Express application. View the [Wiki](http://wiki.github.com/visionmedia/express/) for detailed information.Merge branch 'flash'visionmediabefore adoption3863a76
line 56why, one step back56Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf
lines 57–59why, one step back57 require.paths.unshift('express/lib')58 require('express')59 Merge branch 'bin'visionmediabefore adoption12c2682
lines 60–63why, one step back60 configure(function(){61 set('root', __dirname)62 })63 Better example appvisionmediabefore adoption77f8e46
lines 64–74why, one step back64 get('/user', function(){65 this.redirect('/user/' + this.currentUser.id)66 })67 68 get('/user/:id', function(id){69 this.render('user.haml.html', {70 locals: {71 user: this.currentUser,72 usersOnline: Session.store.length()73 }74 })Merge branch 'flash'visionmediabefore adoption3863a76
line 75why, one step back75 })Sample app in readmevisionmediabefore adoptionfdee4cd
line 76why, one step back76Merge branch 'flash'visionmediabefore adoption3863a76
line 77why, one step back77 run()Merge branch 'coffee'visionmediabefore adoption9cb23ac
line 78why, one step back78 Merge branch 'flash'visionmediabefore adoption3863a76
lines 79–82why, one step back79## Running Tests8081Express uses the [JSpec](http://jspec.info) BDD JavaScript testing82framework to write and run elegant spec suites. JSpec is frozen Managing dependencies with the kiwi package manager. Closes #228visionmediabefore adoption6da4a94
line 83why, one step back83to spec/lib and **does not** require separate installation.Merge branch 'flash'visionmediabefore adoption3863a76
lines 84–93why, one step back8485 $ make test86 87Run individual suites:8889 $ node spec/node.js core90 $ node spec/node.js mime91 $ node spec/node.js routing92 ...93 Docs for stable / edgevisionmediabefore adoption2d1c98a
line 94why, one step back94The latest release of Express is compatible with node --version:Updated node --version supportedvisionmediabefore adoptiona9d3e47
line 95why, one step back95 v0.1.91Docs for stable / edgevisionmediabefore adoption2d1c98a
lines 96–97why, one step back96 97EDGE Express we do our best to keep up to date with node's EDGEMerge branch 'flash'visionmediabefore adoption3863a76
lines 98–102why, one step back98 99## More Information100101 * [JavaScript Extensions & Utilities](http://github.com/visionmedia/ext.js)102 * [JavaScript Sass](http://github.com/visionmedia/sass.js)Shameless self promotion of ebookvisionmediabefore adoption91805f7
line 103why, one step back103 * Featured in [Advanced JavaScript e-book](http://www.dev-mag.com/2010/02/18/advanced-javascript/) for only $40.9.0 release details linkvisionmediabefore adoptionb4dd90d
line 104why, one step back104 * [0.9.0 release details](http://tjholowaychuk.com/post/522036176/express-0-9-0-released) Merge branch 'flash'visionmediabefore adoption3863a76
lines 105–136why, one step back105 106## Contributors107108 * TJ Holowaychuk (visionmedia) <tj@vision-media.ca>109 * Aaron Heckmann (aheckmann) <aaron.heckmann+github@gmail.com>110 * Ciaran Jessup (ciaranj) <ciaranj@gmail.com>111 * Gareth Jones (csausdev) <gareth.jones@sensis.com.au>112 113## License 114115(The MIT License)116117Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>118119Permission is hereby granted, free of charge, to any person obtaining120a copy of this software and associated documentation files (the121'Software'), to deal in the Software without restriction, including122without limitation the rights to use, copy, modify, merge, publish,123distribute, sublicense, and/or sell copies of the Software, and to124permit persons to whom the Software is furnished to do so, subject to125the following conditions:126127The above copyright notice and this permission notice shall be128included in all copies or substantial portions of the Software.129130THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,131EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF132MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.133IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY134CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,135TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE136SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.