Spaces:
Runtime error
Runtime error
File size: 396 Bytes
efead7f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
'use strict';
const express = require('express');
// Constants
const PORT = 7860;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('Hello World from ExpressJS! This example is from the NodeJS Docs: https://nodejs.org/en/docs/guides/nodejs-docker-webapp/');
});
app.listen(PORT, HOST, () => {
console.log(`Running on http://${HOST}:${PORT}`);
}); |