hui4 commited on
Commit
d44fe24
1 Parent(s): f6ed7cf

Create app.js

Browse files
Files changed (1) hide show
  1. app.js +14 -0
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}`);