mirror of
https://github.com/30hours/blah2.git
synced 2024-11-08 12:25:42 +00:00
17 lines
287 B
JavaScript
17 lines
287 B
JavaScript
'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 World');
|
|
});
|
|
|
|
app.listen(PORT, HOST, () => {
|
|
console.log(`Running on http://${HOST}:${PORT}`);
|
|
});
|