Last active
October 14, 2020 12:55
-
-
Save limone-eth/e29899c1d4f11bb3f92c39ccbdcfee4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const os = require('os'); | |
const express = require('express'); | |
// Constants | |
const PORT = 3000; | |
const HOST = '0.0.0.0'; | |
// App | |
const app = express(); | |
app.get('/', (req, res) => { | |
res.send(os.hostname()); | |
}); | |
app.listen(PORT, HOST); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment