Create app.js
Browse files
app.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'use strict';
|
2 |
+
|
3 |
+
const express = require('express')
|
4 |
+
const app = express();
|
5 |
+
|
6 |
+
const port = 7860;
|
7 |
+
const host = '0.0.0.0';
|
8 |
+
|
9 |
+
app.get('/', (req, res) => {
|
10 |
+
res.send('Hello World from IBM Cloud Essentials!');
|
11 |
+
})
|
12 |
+
|
13 |
+
app.listen(port, host);
|
14 |
+
console.log(`Running on http://${host}:${port}`);
|