Skip to content

Instantly share code, notes, and snippets.

View djyde's full-sized avatar
😾
Working on my full time job.

Randy djyde

😾
Working on my full time job.
View GitHub Profile
@djyde
djyde / server.js
Created September 25, 2011 05:36
weblog
var web = require('webjs'),
mongoose = require('mongoose'),
config = require('./config'),
EventProxy = require('EventProxy.js').EventProxy,
Schema = mongoose.Schema;
mongoose.connect('mongodb://' + config.db.host + ':' + config.db.port + '/weblog');
var Comment = new Schema({
author: String,
content: String,