changeset 163 | 02026ee18378 |
child 383 | 3e1a2c8ed980 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/progs/App0.js Tue Sep 23 01:06:00 2014 +0100 @@ -0,0 +1,14 @@ +var express = require('express'); +var app = express(); + +app.get('/', function(request, response){ + response.write('Hello World'); + response.end() +}); + +// alternative response +//response.write('<H1>Hello World</H1>'); + +// starting the server +app.listen(8000); +console.log("Server running at http://127.0.0.1:8000/"); \ No newline at end of file