This file contains 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
// config/config.js | |
module.exports = { | |
'facebook' : { | |
'app_id': '1625542257666775', | |
'app_secret': '02e36cd36f274639d73538a2e350289d', | |
'callback_url': 'http://127.0.0.1:5858/social/facebook/accessToken' | |
}, | |
'twitter': { | |
'consumer_key': 'LDFGrD04cCGYwatlAlVEGCajY', |
This file contains 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
module.exports = { | |
twi_consumerKey: function () { | |
return "LDFGrD04cCGYwatlAlVEGCajY"; | |
}, | |
twi_consumerSecret: function () { | |
return "A8qMM6FlFCH7dzKIRu9zJBDPA485vkaj6XeKHpq5u2RgE9GqdT"; | |
}, | |
twi_callback: function () { | |
return "http://127.0.0.1:5858/social/twitter/accessToken"; | |
}, |
This file contains 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
// config/database.js | |
module.exports = { | |
//'url' : 'your-database-here' // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
//'url' : 'mongodb://siteUserAdmin:password@127.0.0.1:27017/quodisys' // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
//'url' : 'mongodb://crewfire:rp8dx3Wm3FvCmaV@ds041561.mongolab.com:41561/crewfire_dev' // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
'mongodb' : { | |
'url': 'mongodb://admin:tg2015@ds033477.mongolab.com:33477/testimonialguard_dev', // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
}, | |
'redis': { |
This file contains 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
// =========================================================== | |
// Project Name: Testimonial Guard ============== | |
// Company: Quodisys - SimpleCrew ============== | |
// Date Created: 2015 - 03 - 14 ============== | |
// Date Updated: ============== | |
// Dev Lead : Max Nguyen ============== | |
// Dev Editor : Tung Ton ============== | |
// Dev Supporter : Trinh Hong ============== | |
// =========================================================== |
This file contains 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
// server.js | |
// set up ====================================================================== | |
// get all the tools we need | |
var express = require('express'); | |
var app = express(); | |
var port = process.env.PORT || 5858; | |
var mongoose = require('mongoose'); | |
var passport = require('passport'); | |
var flash = require('connect-flash'); |
This file contains 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
// Authentication Middleware for routes | |
// Author: Mike McCabe | |
var _ = require('underscore'); | |
// Publicly accessible auth middleware functions | |
// Allows for mix/match of different auth middleware functions | |
// The module only passes back the middleware functions that do the actual work | |
module.exports = { | |
// route middleware to make sure user is logged in |
This file contains 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
// Functions that check for every type of mobile browser | |
var isMobile = { | |
Android: function() { return navigator.userAgent.match(/Android/i); }, | |
BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, | |
iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, | |
Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, | |
Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, | |
any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; | |
This file contains 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 config = { | |
facebook: { | |
app_id: "852249214821890" | |
} | |
} |
This file contains 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
// config/config.js | |
module.exports = { | |
'facebook' : { | |
'app_id': '852249214821890', | |
'app_secret': '612485679904d01a38da4224af71b09c' | |
}, | |
'linkedin': { | |
'app_id': '75o4nokgz7hdk5', | |
'app_secret': '8wAEQCZu9DQLg8dp', |
This file contains 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
// config/database.js | |
module.exports = { | |
//'url' : 'your-database-here' // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
//'url' : 'mongodb://siteUserAdmin:password@127.0.0.1:27017/quodisys' // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
//'url' : 'mongodb://crewfire:rp8dx3Wm3FvCmaV@ds041561.mongolab.com:41561/crewfire_dev' // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
'mongodb' : { | |
'url': 'mongodb://admin:tg2015@ds033477.mongolab.com:33477/testimonialguard_dev', // looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Mikha4ot | |
}, | |
'redis': { |