Skip to content

Instantly share code, notes, and snippets.

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