Skip to content

Instantly share code, notes, and snippets.

@fdjones
Created May 28, 2018 22:11
Show Gist options
  • Save fdjones/0ed5532731ddf579ff1ce38eb9024b1b to your computer and use it in GitHub Desktop.
Save fdjones/0ed5532731ddf579ff1ce38eb9024b1b to your computer and use it in GitHub Desktop.
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