Created
May 28, 2018 19:26
-
-
Save fdjones/5c6ac850a615fa5142774e807972ef41 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