progs/App0.js
author Christian Urban <urbanc@in.tum.de>
Tue, 26 Sep 2017 12:47:25 +0100
changeset 538 456d1d6676f9
parent 383 3e1a2c8ed980
permissions -rw-r--r--
update

var express = require('express');
var app = express();

app.get('/', function(request, response){
    response.write('<H1>Hello World</H1>');
    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/");