Created
June 18, 2014 21:29
-
-
Save JosephShering/abee04295026af919b0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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