Created
September 28, 2017 15:37
-
-
Save seangates/47cec548b39626614f2ec4b887fea963 to your computer and use it in GitHub Desktop.
Simple Express Web Server
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
let path = require('path'); | |
let express = require('express'); | |
let port = process.env.PORT || 8080; | |
let isProduction = process.env.NODE_ENV === 'production'; | |
let app = express(); | |
app.get('/', (req, res) => { | |
res.send('Hello World!'); | |
}); | |
app.listen(port, () => { | |
console.log('online'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment