start adding firebase

This commit is contained in:
Matteo Pagliazzi
2015-09-04 16:50:58 +02:00
parent 6d91a1905a
commit f5f19d146e
3 changed files with 7 additions and 0 deletions

View File

@@ -69,5 +69,9 @@
"KEY": "key.pem", "KEY": "key.pem",
"CERT": "cert.pem" "CERT": "cert.pem"
} }
},
"FIREBASE": {
"APP": "app-name",
"SECRET": "secret"
} }
} }

View File

@@ -18,6 +18,7 @@
"domain-middleware": "~0.1.0", "domain-middleware": "~0.1.0",
"express": "~3.17.5", "express": "~3.17.5",
"express-csv": "~0.6.0", "express-csv": "~0.6.0",
"firebase": "^2.2.9",
"grunt": "~0.4.1", "grunt": "~0.4.1",
"grunt-browserify": "^3.3.0", "grunt-browserify": "^3.3.0",
"grunt-cli": "~0.1.9", "grunt-cli": "~0.1.9",

View File

@@ -6,6 +6,8 @@ var async = require('async');
var logging = require('../logging'); var logging = require('../logging');
var Challenge = require('./../models/challenge').model; var Challenge = require('./../models/challenge').model;
// NOTE any change to groups' members in MongoDB will have to be run through the API
// changes made directly to the db will cause Firebase to get out of sync
var GroupSchema = new Schema({ var GroupSchema = new Schema({
_id: {type: String, 'default': shared.uuid}, _id: {type: String, 'default': shared.uuid},
name: String, name: String,