Skip to content

Instantly share code, notes, and snippets.

@DanilloCorvalan
Last active December 24, 2015 08:49
Show Gist options
  • Save DanilloCorvalan/6773144 to your computer and use it in GitHub Desktop.
Save DanilloCorvalan/6773144 to your computer and use it in GitHub Desktop.
Basic express inital main js file
var express = require('express'),
path = require('path'),
home = require('./routes/home.js');
var app = express();
app.configure(function() {
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.static(path.join(__dirname, 'public')));
});
app.get('/', home.index);
app.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment