Readme.md
This file
Path
Readme.md
111 lines · 3.4 KiB · Markdown
Last changed by
Readme formattingvisionmediabefore adoption73efcb5
History of this fileTake it
The walk stopped after 200 commits: lines older than 996271b point at it.
Added Collection#{min,max}()visionmediabefore adoption996271b
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 discussionAdded Collection#{min,max}()visionmediabefore adoption996271b
lines 9–11why, one step back910## Features (so far)11Updated featuresvisionmediabefore adoption64a4741
lines 12–13why, one step back12 * Sexy DSL with robust sinatra-like routing13 * High performanceAdded Collection#{min,max}()visionmediabefore adoption996271b
line 14why, one step back14 * Mime helpersDocsvisionmediabefore adoptionf0f71cc
line 15why, one step back15 * Redirection helpersAdded Collection#{min,max}()visionmediabefore adoption996271b
lines 16–17why, one step back16 * Nested parameter parsing17 * Full test coverageUpdated featuresvisionmediabefore adoption64a4741
line 18why, one step back18 * Extremely readable specsAdded Collection#{min,max}()visionmediabefore adoption996271b
line 19why, one step back19 * Test helpers (mock requests etc)Updated featuresvisionmediabefore adoption64a4741
lines 20–21why, one step back20 * Environment based configuration21 * Light-weight JavaScript class implementation via js-ooCollection readmevisionmediabefore adoption460c2a0
line 22why, one step back22 * Collections and chainable iteratorsDocsvisionmediabefore adoption08ada90
line 23why, one step back23 * ElementCollections / markup parsing via libxmljs and css selector traversal support via css2xpathAdded haml to list of supported template enginesvisionmediabefore adoption7d36c6a
line 24why, one step back24 * View support (ejs, haml, mustache)Added Collection#{min,max}()visionmediabefore adoption996271b
lines 25–28why, one step back2526## Performance2728 Extensive benchmarking will wait until a development versionNew benchmarks with 2 haml viewsvisionmediabefore adoption9181f7d
line 29why, one step back29 has been released. Updated benchmarkingvisionmediabefore adoptioncdaca71
line 30why, one step back30 Readme formattingvisionmediabefore adoption73efcb5
lines 31–32why, one step back31 Currently Express can chew through a request with a two Haml views (*page and layout*) 32 requested **2000** times with concurrency of **80** in **2.4** seconds and **814**New benchmarks with 2 haml viewsvisionmediabefore adoption9181f7d
lines 33–34why, one step back33 requests per second.34 Readme formattingvisionmediabefore adoption73efcb5
lines 35–37why, one step back35 An identical Sinatra application was served with the **Thin** HTTP server36 and scored **8.3** seconds and **238** requests per second. In this situation37 Express is currently **72%** faster than Sinatra.Added Collection#{min,max}()visionmediabefore adoption996271b
lines 38–40why, one step back3839## Examples40Better app example in readmevisionmediabefore adoption74e0231
line 41why, one step back41 require.paths.unshift('lib')Docsvisionmediabefore adoption9b8d417
lines 42–44why, one step back42 require('express')43 require('express/plugins')44 Better app example in readmevisionmediabefore adoption74e0231
lines 45–51why, one step back45 configure(function(){46 use(MethodOverride)47 use(ContentLength)48 use(Redirect)49 set('root', dirname(__filename))50 enable('cache views')51 })Docsvisionmediabefore adoption9b8d417
line 52why, one step back52 Better app example in readmevisionmediabefore adoption74e0231
lines 53–63why, one step back53 get('/hello', function(){54 contentType('html')55 return '<h1>World<h1>'56 })57 58 get('/user/:id?', function(id) {59 render('user.haml.html', {60 locals: {61 name: id ? 'User ' + id : 'You' 62 }63 })Docsvisionmediabefore adoption9b8d417
lines 64–66why, one step back64 })65 66 run()Added Collection#{min,max}()visionmediabefore adoption996271b
lines 67–83why, one step back67 68## Running Tests6970Express uses the [JSpec](http://jspec.info) BDD JavaScript testing71framework to write and run elegant spec suites. JSpec is froozen 72to spec/lib and does not require seperate installation.7374To run all specifications:7576 $ make test77 78Run individual suites:7980 $ node spec/spec.node.js core81 $ node spec/spec.node.js mime82 $ node spec/spec.node.js routing83 ...Added node dev version to readmevisionmediabefore adoption9df1a1b
lines 84–86why, one step back8485Express is currently being developed with node --version:86 v0.1.20-1-g1107a1bAdded Collection#{min,max}()visionmediabefore adoption996271b
lines 87–111why, one step back87 88## License 8990(The MIT License)9192Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>9394Permission is hereby granted, free of charge, to any person obtaining95a copy of this software and associated documentation files (the96'Software'), to deal in the Software without restriction, including97without limitation the rights to use, copy, modify, merge, publish,98distribute, sublicense, and/or sell copies of the Software, and to99permit persons to whom the Software is furnished to do so, subject to100the following conditions:101102The above copyright notice and this permission notice shall be103included in all copies or substantial portions of the Software.104105THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,106EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF107MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.108IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY109CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,110TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE111SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.