Skip to content

Instantly share code, notes, and snippets.

Last active October 20, 2017 12:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.set('port', process.env.PORT || 3000)
var http = require('http').Server(app)
// Route
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html');
http.listen(app.get('port'), () => {
console.log('Conference App listening on ' + app.get('port'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment