Install docs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent dfecbe5 · Browse files · 7 files·+92 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+92 added−3 removed
- other:+92 added−3 removed
Provenance
- Commit
63d02f1- Tree
26d5f22- Author
Tj Holowaychuk <tj@vision-media.ca>- Committer
Tj Holowaychuk <tj@vision-media.ca>- Parent
dfecbe5
7 files changed+92 added−3 removed
modified:docs/guide.1+40 added-1 removed
1 unmodified line2 .\" http://github.com/rtomayko/ronn/3 .4 .TH "GUIDE" "" "July 2010" "" ""5 .6+.SS "Installation"7+npm:8+.9+.IP "" 410+.11+.nf12+13+$ npm install express14+.15+.fi16+.17+.IP "" 018+.19+.P20+curl (or similar):21+.22+.IP "" 423+.24+.nf25+26+$ curl \-# http://github\.com/extjs/Connect/raw/master/install\.sh | sh27+.28+.fi29+.30+.IP "" 031+.32+.P33+git clone or tarball for \fBHEAD\fR:34+.35+.IP "" 436+.37+.nf38+39+$ make install40+.41+.fi42+.43+.IP "" 044+.45 .SS "Creating An Application"46 The \fIexpress\.Server\fR now inherits from \fIhttp\.Server\fR, however follows the same idiom by providing \fIexpress\.createServer()\fR as shown below\. This means that you can utilize Express server\'s transparently with other libraries\.47 .48 .IP "" 465 unmodified lines114 .SS "Settings"115 Express supports the following settings out of the box:116 .117 .IP "\(bu" 479-\fIhome\fR Application base path used with \fBres\.redirect()\fR118+\fIhome\fR Application base path used with \fIres\.redirect()\fR119 .120 .IP "\(bu" 4121 \fIviews\fR Root views directory defaulting to \fBCWD/views\fR122 .412 unmodified linesmodified:docs/guide.html+18 added-1 removed
158 unmodified lines159 <li><a href="contrib.html">Contributing</a></li>160 <li><a href="migrate.html">1.x Migration</a></li>161 </ul>162 <div class='mp'>163+<h3 id="Installation">Installation</h3>164+165+<p>npm:</p>166+167+<pre><code>$ npm install express168+</code></pre>169+170+<p>curl (or similar):</p>171+172+<pre><code>$ curl -# http://github.com/extjs/Connect/raw/master/install.sh | sh173+</code></pre>174+175+<p>git clone or tarball for <strong>HEAD</strong>:</p>176+177+<pre><code>$ make install178+</code></pre>179+180 <h3 id="Creating-An-Application">Creating An Application</h3>181 182 <p>The <em>express.Server</em> now inherits from <em>http.Server</em>, however183 follows the same idiom by providing <em>express.createServer()</em> as shown below. This means51 unmodified lines235 236 <p>Express supports the following settings out of the box:</p>237 238 <ul>222-<li><em>home</em> Application base path used with <code>res.redirect()</code></li>239+<li><em>home</em> Application base path used with <em>res.redirect()</em></li>240 <li><em>views</em> Root views directory defaulting to <strong>CWD/views</strong></li>241 <li><em>view engine</em> Default view engine name for views rendered without extensions</li>242 <li><em>reload views</em> Reloads altered views, by default watches for <em>mtime</em> changes with243 with a 5 minute interval. Example: <code>app.set('reload views', { interval: 60000 });</code></li>286 unmodified linesmodified:docs/guide.md+15 added-1 removed
1 2+### Installation3+4+npm:5+6+ $ npm install express7+8+curl (or similar):9+10+ $ curl -# http://github.com/extjs/Connect/raw/master/install.sh | sh11+12+git clone or tarball for **HEAD**:13+14+ $ make install15+16 ### Creating An Application17 18 The _express.Server_ now inherits from _http.Server_, however19 follows the same idiom by providing _express.createServer()_ as shown below. This means47 unmodified lines67 ### Settings68 69 Express supports the following settings out of the box:70 57- * _home_ Application base path used with `res.redirect()`71+ * _home_ Application base path used with _res.redirect()_72 * _views_ Root views directory defaulting to **CWD/views**73 * _view engine_ Default view engine name for views rendered without extensions74 * _reload views_ Reloads altered views, by default watches for _mtime_ changes with75 with a 5 minute interval. Example: `app.set('reload views', { interval: 60000 });`254 unmodified linesmodified:docs/index.1+3 added
65 unmodified lines66 .IP "\(bu" 467 Follow tjholowaychuk \fIhttp://twitter\.com/tjholowaychuk\fR on twitter for updates68 .69 .IP "\(bu" 470+Annotated source documentation \fIapi\.html\fR71+.72+.IP "\(bu" 473 View the source \fIhttp://github\.com/visionmedia/express\fR74 .75 .IP "" 076 modified:docs/index.html+1 added
196 unmodified lines197 198 <ul>199 <li><a href="http://groups.google.com/group/express-js">Google Group</a> for discussion</li>200 <li>Follow <a href="http://twitter.com/tjholowaychuk">tjholowaychuk</a> on twitter for updates</li>201+<li>Annotated source <a href="api.html">documentation</a></li>202 <li>View the <a href="http://github.com/visionmedia/express">source</a></li>203 </ul>204 205 5 unmodified linesmodified:docs/index.md+1 added
27 unmodified lines28293031323327 unmodified lines## More Information
* [Google Group](http://groups.google.com/group/express-js) for discussion * Follow [tjholowaychuk](http://twitter.com/tjholowaychuk) on twitter for updates * Annotated source [documentation](api.html) * View the [source](http://github.com/visionmedia/express)No newline at end of fileNo newline at end of filemodified:Readme.md+14 added
10 unmodified lines1112131415161718192021222324252627282930313270 unmodified lines10 unmodified lines });
app.listen(3000);
## Installation
npm:
$ npm install express
curl (or similar):
$ curl -# http://github.com/extjs/Connect/raw/master/install.sh | sh
git clone or tarball:
$ make install
## Features
* Robust routing * Redirection helpers70 unmodified lines