Created
May 28, 2018 22:11
-
-
Save fdjones/0ed5532731ddf579ff1ce38eb9024b1b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const express = require('express'); | |
const app = express(); | |
const path = require('path'); | |
app.get('/', (req, res) => { | |
res.sendFile(path.join(__dirname + '/index.html')); | |
}); | |
const port = process.env.PORT || 5656; | |
app.listen(5656, () => { | |
console.log(`connected to port ${port}`); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment