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...');
| });
|
|