Skip to content
Myr

Readme.md

This file

Path

Readme.md

108 lines · 3.3 KiB · Markdown

Last changed by

Added Google Groups linkvisionmediabefore adoptionec00ccb

History of this file

Take it

The walk stopped after 200 commits: lines older than 6eed7d6 point at it.

Whitespacevisionmediabefore adoption6eed7d6

lines 1–6why, one step back
1
2# Express3 4 Insanely fast (and small) server-side JavaScript web development framework5 built on **node.js** and the **V8 JavaScript engine**.6

Added Google Groups linkvisionmediabefore adoptionec00ccb

lines 7–8why, one step back
7 * Visit the [Wiki](http://wiki.github.com/visionmedia/express) for documentation
8 * Visit the [Google Group](http://groups.google.com/group/express-js) for discussion

Whitespacevisionmediabefore adoption6eed7d6

lines 9–11why, one step back
9
10## Features (so far)11

Updated featuresvisionmediabefore adoption64a4741

lines 12–13why, one step back
12 * Sexy DSL with robust sinatra-like routing
13 * High performance

Whitespacevisionmediabefore adoption6eed7d6

line 14why, one step back
14 * Mime helpers

Docsvisionmediabefore adoptionf0f71cc

line 15why, one step back
15 * Redirection helpers

Whitespacevisionmediabefore adoption6eed7d6

lines 16–17why, one step back
16 * Nested parameter parsing
17 * Full test coverage

Updated featuresvisionmediabefore adoption64a4741

line 18why, one step back
18 * Extremely readable specs

Whitespacevisionmediabefore adoption6eed7d6

line 19why, one step back
19 * Test helpers (mock requests etc)

Updated featuresvisionmediabefore adoption64a4741

lines 20–21why, one step back
20 * Environment based configuration
21 * Light-weight JavaScript class implementation via js-oo

Collection readmevisionmediabefore adoption460c2a0

line 22why, one step back
22 * Collections and chainable iterators

Docsvisionmediabefore adoption08ada90

line 23why, one step back
23 * ElementCollections / markup parsing via libxmljs and css selector traversal support via css2xpath

Added haml to list of supported template enginesvisionmediabefore adoption7d36c6a

line 24why, one step back
24 * View support (ejs, haml, mustache)

Whitespacevisionmediabefore adoption6eed7d6

lines 25–30why, one step back
25
26## 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, while

Updated benchmarkingvisionmediabefore adoptioncdaca71

lines 31–34why, one step back
31 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 back
35
36## Examples37

Better app example in readmevisionmediabefore adoption74e0231

line 38why, one step back
38 require.paths.unshift('lib')

Docsvisionmediabefore adoption9b8d417

lines 39–41why, one step back
39 require('express')
40 require('express/plugins')41

Better app example in readmevisionmediabefore adoption74e0231

lines 42–48why, one step back
42 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 back
49

Better app example in readmevisionmediabefore adoption74e0231

lines 50–60why, one step back
50 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 back
61 })
62 63 run()

Whitespacevisionmediabefore adoption6eed7d6

lines 64–80why, one step back
64
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 back
81
82Express is currently being developed with node --version:83 v0.1.20-1-g1107a1b

Whitespacevisionmediabefore adoption6eed7d6

lines 84–108why, one step back
84
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.