Skip to content

Instantly share code, notes, and snippets.

@JosephShering
Created June 18, 2014 21:29
Show Gist options
  • Save JosephShering/abee04295026af919b0b to your computer and use it in GitHub Desktop.
Save JosephShering/abee04295026af919b0b to your computer and use it in GitHub Desktop.
var express = require('express');
var mongoose = require('mongoose');
var app = express();
mongoose.connect('mongodb://localhost/moss');
app.use(express.static( __dirname + '/client' ));
app.listen(8000);
app.get('*', function(req, res){
res.sendfile('client/index.html');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment