17 lines
278 B
JavaScript
Executable File
17 lines
278 B
JavaScript
Executable File
'use strict';
|
|
|
|
const express = require('express');
|
|
|
|
// Constants
|
|
const PORT = 8080;
|
|
const HOST = '0.0.0.0';
|
|
|
|
// App
|
|
const app = express();
|
|
app.get('/', (req, res) => {
|
|
res.send('Hello worlds?\n');
|
|
});
|
|
|
|
app.listen(PORT, HOST);
|
|
console.log(`Running on http://${HOST}:${PORT}`);
|