Readme.md
This file
Path
Readme.md
139 lines · 4.6 KiB · Markdown
Last changed by
Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a
History of this fileTake it
The walk stopped after 200 commits: lines older than d6c55cc point at it.
Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 1–6why, one step back12# Express3 4 Insanely fast (and small) server-side JavaScript web development framework5 built on **node.js** and the **V8 JavaScript engine**.6Added Google Groups linkvisionmediabefore adoptionec00ccb
lines 7–8why, one step back7 * Visit the [Wiki](http://wiki.github.com/visionmedia/express) for documentation8 * Visit the [Google Group](http://groups.google.com/group/express-js) for discussionMisc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 9–13why, one step back910## Features (so far)1112 * Sexy DSL with robust sinatra-like routing13 * High performanceReadmevisionmediabefore adoption327d5b0
line 14why, one step back14 * Session supportMisc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 15–23why, one step back15 * Mime helpers16 * Redirection helpers17 * Nested parameter parsing18 * Full test coverage19 * Extremely readable specs20 * Test helpers (mock requests etc)21 * Environment based configuration22 * Light-weight JavaScript class implementation via js-oo23 * Collections and chainable iteratorsReadmevisionmediabefore adoption327d5b0
line 24why, one step back24 * View support (ejs, haml, sass, etc)Added install section in readmevisionmediabefore adoptionbbb858e
lines 25–31why, one step back25 26## Installation2728Currently Express must be cloned (or downloaded), you can use the following command to29get rolling and initialize the submodule dependencies:3031 $ git clone git://github.com/visionmedia/express.git && cd express && git submodule update --init && make appAdded gh install sectionvisionmediabefore adoption3703179
lines 32–35why, one step back32 33Or with the [gh](http://github.com/visionmedia/gh) utility:3435 $ gh clone visionmedia express && cd express && git submodule update --init && make appMisc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 36–38why, one step back3637## Performance38Benchmarks linkvisionmediabefore adoption9f48b32
lines 39–40why, one step back39 Extensive performance enhancements have not yet been made,40 since we are focusing on the framework it-self at the moment. Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
line 41why, one step back41 Benchmarks linkvisionmediabefore adoption9f48b32
line 42why, one step back42 However if you are interested view the premature [benchmarks for Express framework](http://vision-media.ca/resources/nodejs/express-nodejs-web-development-framework-performance).Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 43–45why, one step back4344## Examples45Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptionae33e7b
lines 46–47why, one step back46Below is a minimal app example when express is already within your load path.47Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 48–53why, one step back48 require('express')49 require('express/plugins')50 51 configure(function(){52 use(MethodOverride)53 use(ContentLength)Mergevisionmediabefore adoptioncec6770
line 54why, one step back54 set('root', __dirname)Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 55–57why, one step back55 })56 57 get('/hello', function(){Fixed example app in readmevisionmediabefore adoption0bdff0f
line 58why, one step back58 this.contentType('html')Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 59–62why, one step back59 return '<h1>World<h1>'60 })61 62 get('/user/:id?', function(id) {Fixed example app in readmevisionmediabefore adoption0bdff0f
line 63why, one step back63 this.render('user.haml.html', {Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 64–74why, one step back64 locals: {65 name: id ? 'User ' + id : 'You' 66 }67 })68 })69 70 run()71 72## Running Tests7374Express uses the [JSpec](http://jspec.info) BDD JavaScript testingMerge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption704c933
lines 75–76why, one step back75framework to write and run elegant spec suites. JSpec is frozen 76to spec/lib and does not require separate installation.Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
line 77why, one step back77Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption3f9cbbb
lines 78–80why, one step back78To run all specifications run the following command. This will ensure79git submodules are initialized and updated, as well as building test80related dependencies such as libxmljs.Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 81–83why, one step back8182 $ make test83 Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption704c933
line 84why, one step back84To run independent specs (which do not require building of external apis etc) use:Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2
lines 85–87why, one step back8586 $ make test-independant87 Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption704c933
line 88why, one step back88To run dependent specs (which require building of external apis etc) use:Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2
lines 89–91why, one step back8990 $ make test-dependant91 Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 92–93why, one step back92Run individual suites:93Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a
lines 94–96why, one step back94 $ node spec/node.js core95 $ node spec/node.js mime96 $ node spec/node.js routingMisc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
line 97why, one step back97 ...Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a
line 98why, one step back98 Added node dev version to readmevisionmediabefore adoption9df1a1b
line 99why, one step back99Express is currently being developed with node --version:Mergevisionmediabefore adoptioncec6770
line 100why, one step back100 v0.1.27Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
line 101why, one step back101 Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130
lines 102–105why, one step back102## More Information103104 * [JavaScript Extensions & Utilities](http://github.com/visionmedia/ext.js)105 * [JavaScript Sass](http://github.com/visionmedia/sass.js)Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2
line 106why, one step back106 * [Scons Build System](http://www.scons.org/) (some development dependencies rely on this, ex libxmljs)Shameless self promotion of ebookvisionmediabefore adoption91805f7
line 107why, one step back107 * Featured in [Advanced JavaScript e-book](http://www.dev-mag.com/2010/02/18/advanced-javascript/) for only $4Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130
line 108why, one step back108 Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption17ab8e8
lines 109–110why, one step back109## Contributors110Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130
line 111why, one step back111 * TJ Holowaychuk (visionmedia) <tj@vision-media.ca>Bump Aaron up as a contributorvisionmediabefore adoption99789c3
line 112why, one step back112 * Aaron Heckmann (aheckmann) <aaron.heckmann+github@gmail.com>Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130
lines 113–114why, one step back113 * Ciaran Jessup (ciaranj) <ciaranj@gmail.com>114 * Gareth Jones (csausdev) <gareth.jones@sensis.com.au>Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption17ab8e8
line 115why, one step back115 Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 116–119why, one step back116## License 117118(The MIT License)119Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption17ab8e8
line 120why, one step back120Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc
lines 121–139why, one step back121122Permission is hereby granted, free of charge, to any person obtaining123a copy of this software and associated documentation files (the124'Software'), to deal in the Software without restriction, including125without limitation the rights to use, copy, modify, merge, publish,126distribute, sublicense, and/or sell copies of the Software, and to127permit persons to whom the Software is furnished to do so, subject to128the following conditions:129130The above copyright notice and this permission notice shall be131included in all copies or substantial portions of the Software.132133THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,134EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF135MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.136IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY137CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,138TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE139SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.