Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added quick start to guide

  • Loading branch information...
commit 723774af277c2f55b6825b9999255870e78cc885 1 parent c3fbd3f
TJ Holowaychuk tj authored
Showing with 22 additions and 1 deletion.
  1. +1 −1  Readme.md
  2. +21 −0 docs/guide.md
2  Readme.md
View
@@ -20,7 +20,7 @@ or to access the `express(1)` executable install globally:
$ 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:
21 docs/guide.md
View
@@ -2,6 +2,27 @@
$ 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
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()_.
Please sign in to comment.
Something went wrong with that request. Please try again.