start fixing chat

This commit is contained in:
Michael Q Larson
2014-10-16 09:07:06 -07:00
parent 4a36e58756
commit ac0ab1de37
84 changed files with 1453 additions and 41113 deletions

View File

@@ -4,14 +4,12 @@ var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var challenges = require('../seed_data/challenges.json');
console.log(challenges);
var challengeSchema = new mongoose.Schema({
name: { type: String, unique: true },
source: String,
solution: String,
link: String,
image: String, default: "http://modernweb.com/wp-content/uploads/2013/12/keep-calm-and-learn-javascript.jpg?e6778f",
image: String,
time: Number,
directions: Array
});

View File

@@ -76,4 +76,4 @@ userSchema.methods.gravatar = function(size) {
return 'https://gravatar.com/avatar/' + md5 + '?s=' + size + '&d=retro';
};
module.exports = mongoose.model('User', userSchema);
module.exports = mongoose.model('User', userSchema);