Skip to content
Myr

Readme.md

This file

Path

Readme.md

126 lines · 4.0 KiB · Markdown

Last changed by

Updated support to v0.1.33visionmediabefore adoptionb30eaa8

History of this file

Take it

The walk stopped after 200 commits: lines older than 22e338f point at it.

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 1–13why, 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**.67 * Visit the [Wiki](http://wiki.github.com/visionmedia/express) for documentation8 * Visit the [Google Group](http://groups.google.com/group/express-js) for discussion910## Features (so far)1112 * Sexy DSL with robust sinatra-like routing13 * High performance

Readmevisionmediabefore adoption327d5b0

line 14why, one step back
14 * Session support

Updated feature listvisionmediabefore adoption088aa83

lines 15–16why, one step back
15 * Cache API
16 * RESTful HTTP client

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 17–18why, one step back
17 * Mime helpers
18 * Redirection helpers

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

line 19why, one step back
19 * Multipart file upload support

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 20–21why, one step back
20 * Test helpers (mock requests etc)
21 * Environment based configuration

Updated feature listvisionmediabefore adoption088aa83

lines 22–24why, one step back
22 * Light-weight JavaScript class implementation via [class.js](http://github.com/visionmedia/class.js/)
23 * Persistent flash messages24 * Route passing

Readmevisionmediabefore adoption327d5b0

line 25why, one step back
25 * View support (ejs, haml, sass, etc)

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

line 26why, one step back
26 * Full test coverage

Updated feature listvisionmediabefore adoption088aa83

line 27why, one step back
27 * Logger plugin with several formats

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

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

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 29–31why, one step back
29
30## Installation31

Added kiwi installation docsvisionmediabefore adoption0c18ac5

lines 32–35why, one step back
32 Install the [Kiwi package manager for nodejs](http://github.com/visionmedia/kiwi)
33 and run:34 35 $ kiwi -v install express

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 36–37why, one step back
36
37or

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 38why, one step back
38

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 39–40why, one step back
39 Install via git clone:
40

Added Request#isXHR. Closes #229visionmediabefore adoption884d333

line 41why, one step back
41 $ git clone git://github.com/visionmedia/express.git && cd express && git submodule update --init

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

line 42why, one step back
42

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 43–44why, one step back
43## Performance
44

Benchmarks linkvisionmediabefore adoption9f48b32

lines 45–46why, one step back
45 Extensive performance enhancements have not yet been made,
46 since we are focusing on the framework it-self at the moment.

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 47why, one step back
47

Benchmarks linkvisionmediabefore adoption9f48b32

line 48why, one step back
48 However if you are interested view the premature [benchmarks for Express framework](http://vision-media.ca/resources/nodejs/express-nodejs-web-development-framework-performance).

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 49–51why, one step back
49
50## Examples51

Doc typovisionmediabefore adoption62779fc

line 52why, one step back
52Below is a tiny Express application. View the [Wiki](http://wiki.github.com/visionmedia/express/) for detailed information.

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptionae33e7b

line 53why, one step back
53

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 54–56why, one step back
54 require.paths.unshift('express/lib')
55 require('express')56

Better example appvisionmediabefore adoption77f8e46

lines 57–67why, one step back
57 get('/user', function(){
58 this.redirect('/user/' + this.currentUser.id)59 })60 61 get('/user/:id', function(id){62 this.render('user.haml.html', {63 locals: {64 user: this.currentUser,65 usersOnline: Session.store.length()66 }67 })

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 68why, one step back
68 })

Sample app in readmevisionmediabefore adoptionfdee4cd

line 69why, one step back
69

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 70why, one step back
70 run()

Merge branch 'coffee'visionmediabefore adoption9cb23ac

line 71why, one step back
71

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 72–74why, one step back
72## Running Tests
7374Express uses the [JSpec](http://jspec.info) BDD JavaScript testing

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption704c933

line 75why, one step back
75framework to write and run elegant spec suites. JSpec is frozen

Managing dependencies with the kiwi package manager. Closes #228visionmediabefore adoption6da4a94

line 76why, one step back
76to spec/lib and **does not** require separate installation.

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 77–78why, one step back
77
78 $ make test

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

line 79why, one step back
79

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 80–81why, one step back
80Run individual suites:
81

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

lines 82–84why, one step back
82 $ node spec/node.js core
83 $ node spec/node.js mime84 $ node spec/node.js routing

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 85why, one step back
85 ...

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

line 86why, one step back
86

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 87why, one step back
87Express is currently being developed with node --version:

Updated support to v0.1.33visionmediabefore adoptionb30eaa8

line 88why, one step back
88 v0.1.33

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

line 89why, one step back
89

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130

lines 90–93why, one step back
90## More Information
9192 * [JavaScript Extensions & Utilities](http://github.com/visionmedia/ext.js)93 * [JavaScript Sass](http://github.com/visionmedia/sass.js)

Shameless self promotion of ebookvisionmediabefore adoption91805f7

line 94why, one step back
94 * Featured in [Advanced JavaScript e-book](http://www.dev-mag.com/2010/02/18/advanced-javascript/) for only $4

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130

line 95why, one step back
95

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption17ab8e8

lines 96–97why, one step back
96## Contributors
97

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130

line 98why, one step back
98 * TJ Holowaychuk (visionmedia) <tj@vision-media.ca>

Bump Aaron up as a contributorvisionmediabefore adoption99789c3

line 99why, one step back
99 * Aaron Heckmann (aheckmann) <aaron.heckmann+github@gmail.com>

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption99e3130

lines 100–101why, one step back
100 * Ciaran Jessup (ciaranj) <ciaranj@gmail.com>
101 * Gareth Jones (csausdev) <gareth.jones@sensis.com.au>

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption17ab8e8

line 102why, one step back
102

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 103–106why, one step back
103## License
104105(The MIT License)106

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption17ab8e8

line 107why, one step back
107Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>

Add support to StaticFile so that it works with non-textual files.ciaranjbefore adoption22e338f

lines 108–126why, one step back
108
109Permission is hereby granted, free of charge, to any person obtaining110a copy of this software and associated documentation files (the111'Software'), to deal in the Software without restriction, including112without limitation the rights to use, copy, modify, merge, publish,113distribute, sublicense, and/or sell copies of the Software, and to114permit persons to whom the Software is furnished to do so, subject to115the following conditions:116117The above copyright notice and this permission notice shall be118included in all copies or substantial portions of the Software.119120THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,121EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF122MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.123IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY124CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,125TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE126SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.