Readme.md
This file
Path
Readme.md
132 lines · 4.2 KiB · Markdown
Last changed by
Added support for globals (eg: helpers) in viewsGuillermo Rauchbefore adoption216cb1e
History of this fileTake it
The walk stopped after 200 commits: lines older than 1726dfb point at it.
Sample upload app outputvisionmediabefore adoption1726dfb
lines 1–13why, 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 performanceReadmevisionmediabefore adoption327d5b0
line 14why, one step back14 * Session supportUpdated feature listvisionmediabefore adoption088aa83
lines 15–16why, one step back15 * Cache API16 * RESTful HTTP clientSample upload app outputvisionmediabefore adoption1726dfb
line 17why, one step back17 * Mime helpersMerge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 18why, one step back18 * ETag supportSample upload app outputvisionmediabefore adoption1726dfb
line 19why, one step back19 * Redirection helpersKinda updated feature list a bitvisionmediabefore adoption6805e4f
line 20why, one step back20 * Multipart file upload supportSample upload app outputvisionmediabefore adoption1726dfb
lines 21–22why, one step back21 * Test helpers (mock requests etc)22 * Environment based configurationUpdated feature listvisionmediabefore adoption088aa83
lines 23–25why, one step back23 * Light-weight JavaScript class implementation via [class.js](http://github.com/visionmedia/class.js/)24 * Persistent flash messages25 * Route passingReadmevisionmediabefore adoption327d5b0
line 26why, one step back26 * View support (ejs, haml, sass, etc)Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 27why, one step back27 * View partialsAdded support for globals (eg: helpers) in viewsGuillermo Rauchbefore adoption216cb1e
line 28why, one step back28 * View globals/helpers supportKinda updated feature list a bitvisionmediabefore adoption6805e4f
line 29why, one step back29 * Full test coverageUpdated feature listvisionmediabefore adoption088aa83
line 30why, one step back30 * Logger plugin with several formatsDocsvisionmediabefore adoption62b9a9e
line 31why, one step back31 * Upload size restrictionsKinda updated feature list a bitvisionmediabefore adoption6805e4f
line 32why, one step back32 * Extremely readable specsMerge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 33why, one step back33 * Cookie supportSample upload app outputvisionmediabefore adoption1726dfb
lines 34–36why, one step back34 35## Installation36Added kiwi installation docsvisionmediabefore adoption0c18ac5
lines 37–40why, one step back37 Install the [Kiwi package manager for nodejs](http://github.com/visionmedia/kiwi)38 and run:39 40 $ kiwi -v install expressMerge branch 'remove-kiwi'visionmediabefore adoption670b6cf
lines 41–42why, one step back41 42orSample upload app outputvisionmediabefore adoption1726dfb
line 43why, one step back43Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf
lines 44–45why, one step back44 Install via git clone:45 Added Request#isXHR. Closes #229visionmediabefore adoption884d333
line 46why, one step back46 $ git clone git://github.com/visionmedia/express.git && cd express && git submodule update --initMerge branch 'remove-kiwi'visionmediabefore adoption670b6cf
line 47why, one step back47Sample upload app outputvisionmediabefore adoption1726dfb
lines 48–49why, one step back48## Examples49Doc typovisionmediabefore adoption62779fc
line 50why, one step back50Below is a tiny Express application. View the [Wiki](http://wiki.github.com/visionmedia/express/) for detailed information.Sample upload app outputvisionmediabefore adoption1726dfb
line 51why, one step back51Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf
lines 52–54why, one step back52 require.paths.unshift('express/lib')53 require('express')54 Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
lines 55–58why, one step back55 configure(function(){56 set('root', __dirname)57 })58 Better example appvisionmediabefore adoption77f8e46
lines 59–69why, one step back59 get('/user', function(){60 this.redirect('/user/' + this.currentUser.id)61 })62 63 get('/user/:id', function(id){64 this.render('user.haml.html', {65 locals: {66 user: this.currentUser,67 usersOnline: Session.store.length()68 }69 })Sample upload app outputvisionmediabefore adoption1726dfb
line 70why, one step back70 })Sample app in readmevisionmediabefore adoptionfdee4cd
line 71why, one step back71Sample upload app outputvisionmediabefore adoption1726dfb
line 72why, one step back72 run()Merge branch 'coffee'visionmediabefore adoption9cb23ac
line 73why, one step back73 Sample upload app outputvisionmediabefore adoption1726dfb
lines 74–77why, one step back74## Running Tests7576Express uses the [JSpec](http://jspec.info) BDD JavaScript testing77framework to write and run elegant spec suites. JSpec is frozen Managing dependencies with the kiwi package manager. Closes #228visionmediabefore adoption6da4a94
line 78why, one step back78to spec/lib and **does not** require separate installation.Sample upload app outputvisionmediabefore adoption1726dfb
lines 79–88why, one step back7980 $ make test81 82Run individual suites:8384 $ node spec/node.js core85 $ node spec/node.js mime86 $ node spec/node.js routing87 ...88 Docs for stable / edgevisionmediabefore adoption2d1c98a
line 89why, one step back89The latest release of Express is compatible with node --version:Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 90why, one step back90 v0.1.94Docs for stable / edgevisionmediabefore adoption2d1c98a
line 91why, one step back91 Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 92why, one step back92With _EDGE_ Express we do our best to keep up to date with node's _EDGE_Sample upload app outputvisionmediabefore adoption1726dfb
lines 93–97why, one step back93 94## More Information9596 * [JavaScript Extensions & Utilities](http://github.com/visionmedia/ext.js)97 * [JavaScript Sass](http://github.com/visionmedia/sass.js)Shameless self promotion of ebookvisionmediabefore adoption91805f7
line 98why, one step back98 * Featured in [Advanced JavaScript e-book](http://www.dev-mag.com/2010/02/18/advanced-javascript/) for only $4Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
lines 99–100why, one step back99 * [0.9.0 release details](http://tjholowaychuk.com/post/522036176/express-0-9-0-released)100 * [Express vs Sinatra Benchmarks](http://tjholowaychuk.com/post/543953703/express-vs-sinatra-benchmarks)Sample upload app outputvisionmediabefore adoption1726dfb
lines 101–104why, one step back101 102## Contributors103104 * TJ Holowaychuk (visionmedia) <tj@vision-media.ca>Bump Aaron up as a contributorvisionmediabefore adoption99789c3
line 105why, one step back105 * Aaron Heckmann (aheckmann) <aaron.heckmann+github@gmail.com>Sample upload app outputvisionmediabefore adoption1726dfb
lines 106–132why, one step back106 * Ciaran Jessup (ciaranj) <ciaranj@gmail.com>107 * Gareth Jones (csausdev) <gareth.jones@sensis.com.au>108 109## License 110111(The MIT License)112113Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>114115Permission is hereby granted, free of charge, to any person obtaining116a copy of this software and associated documentation files (the117'Software'), to deal in the Software without restriction, including118without limitation the rights to use, copy, modify, merge, publish,119distribute, sublicense, and/or sell copies of the Software, and to120permit persons to whom the Software is furnished to do so, subject to121the following conditions:122123The above copyright notice and this permission notice shall be124included in all copies or substantial portions of the Software.125126THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,127EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF128MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.129IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY130CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,131TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE132SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.