Skip to content

Instantly share code, notes, and snippets.

@fidanov
Created August 25, 2014 13:39
Show Gist options
  • Save fidanov/13d1d7970c8b3850808e to your computer and use it in GitHub Desktop.
Save fidanov/13d1d7970c8b3850808e to your computer and use it in GitHub Desktop.
Basis express web app.js file.
var express = require('express')
, app = express()
app.engine('jade', require('jade').__express)
app.set('view engine', 'jade')
app.use(express.static(__dirname + '/public'))
app.use(require('./controllers'))
app.listen(3000, function() {
console.log('Listening on port 3000...')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment