Skip to content
Myr

Readme.md

This file

Path

Readme.md

111 lines · 3.4 KiB · Markdown

Last changed by

Readme formattingvisionmediabefore adoption73efcb5

History of this file

Take 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 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

Added Collection#{min,max}()visionmediabefore adoption996271b

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

Added Collection#{min,max}()visionmediabefore adoption996271b

line 14why, one step back
14 * Mime helpers

Docsvisionmediabefore adoptionf0f71cc

line 15why, one step back
15 * Redirection helpers

Added Collection#{min,max}()visionmediabefore adoption996271b

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

Added Collection#{min,max}()visionmediabefore adoption996271b

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)

Added Collection#{min,max}()visionmediabefore adoption996271b

lines 25–28why, one step back
25
26## Performance2728 Extensive benchmarking will wait until a development version

New benchmarks with 2 haml viewsvisionmediabefore adoption9181f7d

line 29why, one step back
29 has been released.

Updated benchmarkingvisionmediabefore adoptioncdaca71

line 30why, one step back
30

Readme formattingvisionmediabefore adoption73efcb5

lines 31–32why, one step back
31 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 back
33 requests per second.
34

Readme formattingvisionmediabefore adoption73efcb5

lines 35–37why, one step back
35 An identical Sinatra application was served with the **Thin** HTTP server
36 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 back
38
39## Examples40

Better app example in readmevisionmediabefore adoption74e0231

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

Docsvisionmediabefore adoption9b8d417

lines 42–44why, one step back
42 require('express')
43 require('express/plugins')44

Better app example in readmevisionmediabefore adoption74e0231

lines 45–51why, one step back
45 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 back
52

Better app example in readmevisionmediabefore adoption74e0231

lines 53–63why, one step back
53 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 back
64 })
65 66 run()

Added Collection#{min,max}()visionmediabefore adoption996271b

lines 67–83why, one step back
67
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 back
84
85Express is currently being developed with node --version:86 v0.1.20-1-g1107a1b

Added Collection#{min,max}()visionmediabefore adoption996271b

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