Skip to content

Commit

Permalink
added quick start to guide
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 2, 2011
1 parent c3fbd3f commit 723774a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ or to access the `express(1)` executable install globally:


$ npm install -g express $ npm install -g express


## Getting Started ## Quick Start


The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below: The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:


Expand Down
21 changes: 21 additions & 0 deletions docs/guide.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@


$ npm install express $ npm install express


or to access the `express(1)` executable install globally:

$ npm install -g express

## Quick Start

The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below:

Create the app:

$ npm install -g express
$ express /tmp/foo && cd /tmp/foo

Install dependencies:

$ npm install -d

Start the server:

$ node app.js

### Creating A Server ### Creating A Server


To create an instance of the _express.HTTPServer_, simply invoke the _createServer()_ method. With our instance _app_ we can then define routes based on the HTTP verbs, in this example _app.get()_. To create an instance of the _express.HTTPServer_, simply invoke the _createServer()_ method. With our instance _app_ we can then define routes based on the HTTP verbs, in this example _app.get()_.
Expand Down

0 comments on commit 723774a

Please sign in to comment.