Skip to content

Instantly share code, notes, and snippets.

@johnmcaliley
Created July 1, 2011 18:00
Show Gist options
  • Save johnmcaliley/1059085 to your computer and use it in GitHub Desktop.
Save johnmcaliley/1059085 to your computer and use it in GitHub Desktop.
initialize express and express-resource
require('mongoose')
var express = require('express')
, resource = require('express-resource')
, app = express.createServer();
app.listen(3000);
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment