var express = require('express');
var app = express();
var path = require('path');

var port = process.env.PORT || 8080;

// set the view engine to ejs
app.set('view engine', 'ejs');

// make express look in the public directory for assets (css/js/img)
app.use(express.static(__dirname + '/public'));

// set the home page route
app.get('/', function(req, res) {
    // ejs render automatically looks in the views folder
    res.render(path.join(__dirname,'views', 'index'));
});

app.listen(port, function() {
    console.log('Our app is running on http://localhost:' + port); // eslint-disable-line no-console
});

exports.init = function() {
    return false;
};

var express = require('express');
var app = express();
var path = require('path');

var port = process.env.PORT || 8080;

// set the view engine to ejs
app.set('view engine', 'ejs');

// make express look in the public directory for assets (css/js/img)
app.use(express.static(__dirname + '/public'));

// set the home page route
app.get('/', function(req, res) {
    // ejs render automatically looks in the views folder
    res.render(path.join(__dirname,'views', 'index'));
});

app.listen(port, function() {
    console.log('Our app is running on http://localhost:' + port); // eslint-disable-line no-console
});

exports.init = function() {
    return true;
};

Update index.js