Skip to content
Myr

Readme.md

This file

Path

Readme.md

139 lines · 4.6 KiB · Markdown

Last changed by

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

History of this file

Take it

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

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

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

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 9–13why, one step back
9
10## Features (so far)1112 * Sexy DSL with robust sinatra-like routing13 * High performance

Readmevisionmediabefore adoption327d5b0

line 14why, one step back
14 * Session support

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 15–23why, one step back
15 * Mime helpers
16 * Redirection helpers17 * Nested parameter parsing18 * Full test coverage19 * Extremely readable specs20 * Test helpers (mock requests etc)21 * Environment based configuration22 * Light-weight JavaScript class implementation via js-oo23 * Collections and chainable iterators

Readmevisionmediabefore adoption327d5b0

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

Added install section in readmevisionmediabefore adoptionbbb858e

lines 25–31why, one step back
25
26## Installation2728Currently Express must be cloned (or downloaded), you can use the following command to29get rolling and initialize the submodule dependencies:3031 $ git clone git://github.com/visionmedia/express.git && cd express && git submodule update --init && make app

Added gh install sectionvisionmediabefore adoption3703179

lines 32–35why, one step back
32
33Or with the [gh](http://github.com/visionmedia/gh) utility:3435 $ gh clone visionmedia express && cd express && git submodule update --init && make app

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 36–38why, one step back
36
37## Performance38

Benchmarks linkvisionmediabefore adoption9f48b32

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

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

line 41why, one step back
41

Benchmarks linkvisionmediabefore adoption9f48b32

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

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 43–45why, one step back
43
44## Examples45

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

lines 46–47why, one step back
46Below is a minimal app example when express is already within your load path.
47

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 48–53why, one step back
48 require('express')
49 require('express/plugins')50 51 configure(function(){52 use(MethodOverride)53 use(ContentLength)

Mergevisionmediabefore adoptioncec6770

line 54why, one step back
54 set('root', __dirname)

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 55–57why, one step back
55 })
56 57 get('/hello', function(){

Fixed example app in readmevisionmediabefore adoption0bdff0f

line 58why, one step back
58 this.contentType('html')

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 59–62why, one step back
59 return '<h1>World<h1>'
60 })61 62 get('/user/:id?', function(id) {

Fixed example app in readmevisionmediabefore adoption0bdff0f

line 63why, one step back
63 this.render('user.haml.html', {

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 64–74why, one step back
64 locals: {
65 name: id ? 'User ' + id : 'You' 66 }67 })68 })69 70 run()71 72## Running Tests7374Express uses the [JSpec](http://jspec.info) BDD JavaScript testing

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

lines 75–76why, one step back
75framework to write and run elegant spec suites. JSpec is frozen
76to spec/lib and does not require separate installation.

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

line 77why, one step back
77

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

lines 78–80why, one step back
78To run all specifications run the following command. This will ensure
79git submodules are initialized and updated, as well as building test80related dependencies such as libxmljs.

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 81–83why, one step back
81
82 $ make test83

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

line 84why, one step back
84To run independent specs (which do not require building of external apis etc) use:

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

lines 85–87why, one step back
85
86 $ make test-independant87

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

line 88why, one step back
88To run dependent specs (which require building of external apis etc) use:

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

lines 89–91why, one step back
89
90 $ make test-dependant91

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 92–93why, one step back
92Run individual suites:
93

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

lines 94–96why, one step back
94 $ node spec/node.js core
95 $ node spec/node.js mime96 $ node spec/node.js routing

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

line 97why, one step back
97 ...

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

line 98why, one step back
98

Added node dev version to readmevisionmediabefore adoption9df1a1b

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

Mergevisionmediabefore adoptioncec6770

line 100why, one step back
100 v0.1.27

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

line 101why, one step back
101

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

lines 102–105why, one step back
102## More Information
103104 * [JavaScript Extensions &amp; Utilities](http://github.com/visionmedia/ext.js)105 * [JavaScript Sass](http://github.com/visionmedia/sass.js)

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

line 106why, one step back
106 * [Scons Build System](http://www.scons.org/) (some development dependencies rely on this, ex libxmljs)

Shameless self promotion of ebookvisionmediabefore adoption91805f7

line 107why, one step back
107 * 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 108why, one step back
108

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

lines 109–110why, one step back
109## Contributors
110

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

line 111why, one step back
111 * TJ Holowaychuk (visionmedia) &lt;tj@vision-media.ca&gt;

Bump Aaron up as a contributorvisionmediabefore adoption99789c3

line 112why, one step back
112 * Aaron Heckmann (aheckmann) &lt;aaron.heckmann+github@gmail.com&gt;

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

lines 113–114why, one step back
113 * Ciaran Jessup (ciaranj) &lt;ciaranj@gmail.com&gt;
114 * Gareth Jones (csausdev) &lt;gareth.jones@sensis.com.au&gt;

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

line 115why, one step back
115

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 116–119why, one step back
116## License
117118(The MIT License)119

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

line 120why, one step back
120Copyright (c) 2009 TJ Holowaychuk &lt;tj@vision-media.ca&gt;

Misc refactoring to CommonLogger and Redirect pluginsvisionmediabefore adoptiond6c55cc

lines 121–139why, one step back
121
122Permission is hereby granted, free of charge, to any person obtaining123a copy of this software and associated documentation files (the124'Software'), to deal in the Software without restriction, including125without limitation the rights to use, copy, modify, merge, publish,126distribute, sublicense, and/or sell copies of the Software, and to127permit persons to whom the Software is furnished to do so, subject to128the following conditions:129130The above copyright notice and this permission notice shall be131included in all copies or substantial portions of the Software.132133THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,134EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF135MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.136IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY137CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,138TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE139SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.