Ravi Srinivasan
2019-09-19 06547e4014cec2659f4fd9f8d85b5979427f9187
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const express = require('express');
app = express();
 
var response;
 
app.get('/', function (req, res) {
 
    response = 'This is version 1 of the app.' + '\n';
 
    //send the response to the client
    res.send(response);
 
});
 
app.listen(8080, function () {
  console.log('Server listening on port 8080...');
});