From a08b1745154c189e2310f1afa04abcc3d89031e8 Mon Sep 17 00:00:00 2001 From: Ross Cairns Date: Tue, 23 Apr 2013 12:58:49 +0100 Subject: [PATCH] Updated read me to v2.0.0 --- README.md | 41 +++-------------------------------------- 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 593b2fb..816199f 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,5 @@ -# basic express webserver +# Basic express.js webserver -To setup: +Less.js middleware, directory listing, routes in app file, jade pretty print, port 3000 or `process.env.PORT`. - $ npm install - -To start: - - $ node app.js - -Specify port: - - $ node app.js -p 8000 - -#### File watching & auto reloading - -To start with file watching: - - $ node app.js -w - -to have your webpage auto reloading/refresh, include: - - - - -#### Jade and Express routing - -In `app.js` uncomment the following lines: - - - app.get('/', function(req, res) { - res.render('index', { - title: 'Simple Server', - watch: { - enabled: watch, - script: '' - } - }); - }); +Adapted from Express.js v3.0.3 project generator.