Created
May 16, 2017 20:30
-
-
Save orels1/b26cf36f6439d1984b52160777eb0778 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 path = require('path'); | |
const app = express(); | |
app.get('/', (req, res) => { | |
res.status(200).sendFile(path.join(__dirname, 'index.html')); | |
}); | |
app.listen(50451, () => { | |
console.info('Running on port 50451'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment