Readme.md
This file
Path
Readme.md
108 lines · 3.3 KiB · Markdown
Last changed by
Added Google Groups linkvisionmediabefore adoptionec00ccb
History of this fileTake it
The walk stopped after 200 commits: lines older than 6eed7d6 point at it.
Whitespacevisionmediabefore adoption6eed7d6
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 discussionWhitespacevisionmediabefore adoption6eed7d6
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 performanceWhitespacevisionmediabefore adoption6eed7d6
line 14why, one step back14 * Mime helpersDocsvisionmediabefore adoptionf0f71cc
line 15why, one step back15 * Redirection helpersWhitespacevisionmediabefore adoption6eed7d6
lines 16–17why, one step back16 * Nested parameter parsing17 * Full test coverageUpdated featuresvisionmediabefore adoption64a4741
line 18why, one step back18 * Extremely readable specsWhitespacevisionmediabefore adoption6eed7d6
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)Whitespacevisionmediabefore adoption6eed7d6
lines 25–30why, one step back2526## Performance2728 Extensive benchmarking will wait until a development version29 has been released. However for simple an average route and response30 body Ruby's Sinatra scored **1454** request per second using Thin, whileUpdated benchmarkingvisionmediabefore adoptioncdaca71
lines 31–34why, one step back31 Express scored **3600**.32 33 Currently Express can chew through **1000** simple requests with a 34 concurrency of **40** in **0.262** seconds.Whitespacevisionmediabefore adoption6eed7d6
lines 35–37why, one step back3536## Examples37Better app example in readmevisionmediabefore adoption74e0231
line 38why, one step back38 require.paths.unshift('lib')Docsvisionmediabefore adoption9b8d417
lines 39–41why, one step back39 require('express')40 require('express/plugins')41 Better app example in readmevisionmediabefore adoption74e0231
lines 42–48why, one step back42 configure(function(){43 use(MethodOverride)44 use(ContentLength)45 use(Redirect)46 set('root', dirname(__filename))47 enable('cache views')48 })Docsvisionmediabefore adoption9b8d417
line 49why, one step back49 Better app example in readmevisionmediabefore adoption74e0231
lines 50–60why, one step back50 get('/hello', function(){51 contentType('html')52 return '<h1>World<h1>'53 })54 55 get('/user/:id?', function(id) {56 render('user.haml.html', {57 locals: {58 name: id ? 'User ' + id : 'You' 59 }60 })Docsvisionmediabefore adoption9b8d417
lines 61–63why, one step back61 })62 63 run()Whitespacevisionmediabefore adoption6eed7d6
lines 64–80why, one step back64 65## Running Tests6667Express uses the [JSpec](http://jspec.info) BDD JavaScript testing68framework to write and run elegant spec suites. JSpec is froozen 69to spec/lib and does not require seperate installation.7071To run all specifications:7273 $ make test74 75Run individual suites:7677 $ node spec/spec.node.js core78 $ node spec/spec.node.js mime79 $ node spec/spec.node.js routing80 ...Added node dev version to readmevisionmediabefore adoption9df1a1b
lines 81–83why, one step back8182Express is currently being developed with node --version:83 v0.1.20-1-g1107a1bWhitespacevisionmediabefore adoption6eed7d6
lines 84–108why, one step back84 85## License 8687(The MIT License)8889Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>9091Permission is hereby granted, free of charge, to any person obtaining92a copy of this software and associated documentation files (the93'Software'), to deal in the Software without restriction, including94without limitation the rights to use, copy, modify, merge, publish,95distribute, sublicense, and/or sell copies of the Software, and to96permit persons to whom the Software is furnished to do so, subject to97the following conditions:9899The above copyright notice and this permission notice shall be100included in all copies or substantial portions of the Software.101102THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,103EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF104MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.105IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY106CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,107TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE108SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.