Skip to content
Myr

Readme.md

This file

Path

Readme.md

132 lines · 4.2 KiB · Markdown

Last changed by

Added support for globals (eg: helpers) in viewsGuillermo Rauchbefore adoption216cb1e

History of this file

Take it

The walk stopped after 200 commits: lines older than 1726dfb point at it.

Sample upload app outputvisionmediabefore adoption1726dfb

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

Sample upload app outputvisionmediabefore adoption1726dfb

line 17why, one step back
17 * Mime helpers

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

line 18why, one step back
18 * ETag support

Sample upload app outputvisionmediabefore adoption1726dfb

line 19why, one step back
19 * Redirection helpers

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

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

Sample upload app outputvisionmediabefore adoption1726dfb

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

Updated feature listvisionmediabefore adoption088aa83

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

Readmevisionmediabefore adoption327d5b0

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

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

line 27why, one step back
27 * View partials

Added support for globals (eg: helpers) in viewsGuillermo Rauchbefore adoption216cb1e

line 28why, one step back
28 * View globals/helpers support

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

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

Updated feature listvisionmediabefore adoption088aa83

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

Docsvisionmediabefore adoption62b9a9e

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

Kinda updated feature list a bitvisionmediabefore adoption6805e4f

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

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

line 33why, one step back
33 * Cookie support

Sample upload app outputvisionmediabefore adoption1726dfb

lines 34–36why, one step back
34
35## Installation36

Added kiwi installation docsvisionmediabefore adoption0c18ac5

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

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 41–42why, one step back
41
42or

Sample upload app outputvisionmediabefore adoption1726dfb

line 43why, one step back
43

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

lines 44–45why, one step back
44 Install via git clone:
45

Added Request#isXHR. Closes #229visionmediabefore adoption884d333

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

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

line 47why, one step back
47

Sample upload app outputvisionmediabefore adoption1726dfb

lines 48–49why, one step back
48## Examples
49

Doc typovisionmediabefore adoption62779fc

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

Sample upload app outputvisionmediabefore adoption1726dfb

line 51why, one step back
51

Merge branch 'remove-kiwi'visionmediabefore adoption670b6cf

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

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

lines 55–58why, one step back
55 configure(function(){
56 set('root', __dirname)57 })58

Better example appvisionmediabefore adoption77f8e46

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

Sample upload app outputvisionmediabefore adoption1726dfb

line 70why, one step back
70 })

Sample app in readmevisionmediabefore adoptionfdee4cd

line 71why, one step back
71

Sample upload app outputvisionmediabefore adoption1726dfb

line 72why, one step back
72 run()

Merge branch 'coffee'visionmediabefore adoption9cb23ac

line 73why, one step back
73

Sample upload app outputvisionmediabefore adoption1726dfb

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

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

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

Sample upload app outputvisionmediabefore adoption1726dfb

lines 79–88why, one step back
79
80 $ make test81 82Run individual suites:8384 $ node spec/node.js core85 $ node spec/node.js mime86 $ node spec/node.js routing87 ...88

Docs for stable / edgevisionmediabefore adoption2d1c98a

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

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

line 90why, one step back
90 v0.1.94

Docs for stable / edgevisionmediabefore adoption2d1c98a

line 91why, one step back
91

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

line 92why, one step back
92With _EDGE_ Express we do our best to keep up to date with node's _EDGE_

Sample upload app outputvisionmediabefore adoption1726dfb

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

Shameless self promotion of ebookvisionmediabefore adoption91805f7

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

Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b

lines 99–100why, one step back
99 * [0.9.0 release details](http://tjholowaychuk.com/post/522036176/express-0-9-0-released)
100 * [Express vs Sinatra Benchmarks](http://tjholowaychuk.com/post/543953703/express-vs-sinatra-benchmarks)

Sample upload app outputvisionmediabefore adoption1726dfb

lines 101–104why, one step back
101
102## Contributors103104 * TJ Holowaychuk (visionmedia) <tj@vision-media.ca>

Bump Aaron up as a contributorvisionmediabefore adoption99789c3

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

Sample upload app outputvisionmediabefore adoption1726dfb

lines 106–132why, one step back
106 * Ciaran Jessup (ciaranj) <ciaranj@gmail.com>
107 * Gareth Jones (csausdev) <gareth.jones@sensis.com.au>108 109## License 110111(The MIT License)112113Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>114115Permission is hereby granted, free of charge, to any person obtaining116a copy of this software and associated documentation files (the117'Software'), to deal in the Software without restriction, including118without limitation the rights to use, copy, modify, merge, publish,119distribute, sublicense, and/or sell copies of the Software, and to120permit persons to whom the Software is furnished to do so, subject to121the following conditions:122123The above copyright notice and this permission notice shall be124included in all copies or substantial portions of the Software.125126THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,127EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF128MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.129IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY130CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,131TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE132SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.