Skip to content
Myr

Readme.md

This file

Path

Readme.md

136 lines · 4.3 KiB · Markdown

Last changed by

Merge branch 'bin'visionmediabefore adoption12c2682

History of this file

Take it

The walk stopped after 200 commits: lines older than 3863a76 point at it.

Merge branch 'flash'visionmediabefore adoption3863a76

lines 1–14why, 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 performance14 * Session support

Updated feature listvisionmediabefore adoption088aa83

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

Merge branch 'flash'visionmediabefore adoption3863a76

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

Merge branch 'flash'visionmediabefore adoption3863a76

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

Merge branch 'flash'visionmediabefore adoption3863a76

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

Added view partials to feature listvisionmediabefore adoptionfbbe136

line 26why, one step back
26 * View partials

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

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

Updated feature listvisionmediabefore adoption088aa83

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

Docsvisionmediabefore adoption62b9a9e

line 29why, one step back
29 * Upload size restrictions

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

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

Merge branch 'integration'visionmediabefore adoption7441164

line 31why, one step back
31 * Cookie support

Merge branch 'flash'visionmediabefore adoption3863a76

lines 32–34why, one step back
32
33## Installation34

Added kiwi installation docsvisionmediabefore adoption0c18ac5

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

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 39–40why, one step back
39
40or

Merge branch 'flash'visionmediabefore adoption3863a76

line 41why, one step back
41

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 42–43why, one step back
42 Install via git clone:
43

Added Request#isXHR. Closes #229visionmediabefore adoption884d333

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

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

line 45why, one step back
45

Merge branch 'flash'visionmediabefore adoption3863a76

lines 46–47why, one step back
46## Performance
47

Benchmarks linkvisionmediabefore adoption9f48b32

line 48why, one step back
48 Extensive performance enhancements have not yet been made,

Merge branch 'integration'visionmediabefore adoption7441164

line 49why, one step back
49 since we are focusing on the framework itself at the moment.

Merge branch 'flash'visionmediabefore adoption3863a76

line 50why, one step back
50

Benchmarks linkvisionmediabefore adoption9f48b32

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

Merge branch 'flash'visionmediabefore adoption3863a76

lines 52–54why, one step back
52
53## Examples54

Doc typovisionmediabefore adoption62779fc

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

Merge branch 'flash'visionmediabefore adoption3863a76

line 56why, one step back
56

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 57–59why, one step back
57 require.paths.unshift('express/lib')
58 require('express')59

Merge branch 'bin'visionmediabefore adoption12c2682

lines 60–63why, one step back
60 configure(function(){
61 set('root', __dirname)62 })63

Better example appvisionmediabefore adoption77f8e46

lines 64–74why, one step back
64 get('/user', function(){
65 this.redirect('/user/' + this.currentUser.id)66 })67 68 get('/user/:id', function(id){69 this.render('user.haml.html', {70 locals: {71 user: this.currentUser,72 usersOnline: Session.store.length()73 }74 })

Merge branch 'flash'visionmediabefore adoption3863a76

line 75why, one step back
75 })

Sample app in readmevisionmediabefore adoptionfdee4cd

line 76why, one step back
76

Merge branch 'flash'visionmediabefore adoption3863a76

line 77why, one step back
77 run()

Merge branch 'coffee'visionmediabefore adoption9cb23ac

line 78why, one step back
78

Merge branch 'flash'visionmediabefore adoption3863a76

lines 79–82why, one step back
79## Running Tests
8081Express uses the [JSpec](http://jspec.info) BDD JavaScript testing82framework to write and run elegant spec suites. JSpec is frozen

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

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

Merge branch 'flash'visionmediabefore adoption3863a76

lines 84–93why, one step back
84
85 $ make test86 87Run individual suites:8889 $ node spec/node.js core90 $ node spec/node.js mime91 $ node spec/node.js routing92 ...93

Docs for stable / edgevisionmediabefore adoption2d1c98a

line 94why, one step back
94The latest release of Express is compatible with node --version:

Updated node --version supportedvisionmediabefore adoptiona9d3e47

line 95why, one step back
95 v0.1.91

Docs for stable / edgevisionmediabefore adoption2d1c98a

lines 96–97why, one step back
96
97EDGE Express we do our best to keep up to date with node's EDGE

Merge branch 'flash'visionmediabefore adoption3863a76

lines 98–102why, one step back
98
99## More Information100101 * [JavaScript Extensions & Utilities](http://github.com/visionmedia/ext.js)102 * [JavaScript Sass](http://github.com/visionmedia/sass.js)

Shameless self promotion of ebookvisionmediabefore adoption91805f7

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

0.9.0 release details linkvisionmediabefore adoptionb4dd90d

line 104why, one step back
104 * [0.9.0 release details](http://tjholowaychuk.com/post/522036176/express-0-9-0-released)

Merge branch 'flash'visionmediabefore adoption3863a76

lines 105–136why, one step back
105
106## Contributors107108 * TJ Holowaychuk (visionmedia) <tj@vision-media.ca>109 * Aaron Heckmann (aheckmann) <aaron.heckmann+github@gmail.com>110 * Ciaran Jessup (ciaranj) <ciaranj@gmail.com>111 * Gareth Jones (csausdev) <gareth.jones@sensis.com.au>112 113## License 114115(The MIT License)116117Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>118119Permission is hereby granted, free of charge, to any person obtaining120a copy of this software and associated documentation files (the121'Software'), to deal in the Software without restriction, including122without limitation the rights to use, copy, modify, merge, publish,123distribute, sublicense, and/or sell copies of the Software, and to124permit persons to whom the Software is furnished to do so, subject to125the following conditions:126127The above copyright notice and this permission notice shall be128included in all copies or substantial portions of the Software.129130THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,131EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF132MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.133IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY134CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,135TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE136SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.