This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge from gabrielmanchini - issue #50
- Loading branch information
Showing
18 changed files
with
303 additions
and
147 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// http://www.jshint.com/docs/ | ||
{ | ||
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. | ||
"browser": true, // Standard browser globals e.g. `window`, `document`. | ||
"es5": true, // Allow EcmaScript 5 syntax. | ||
"esnext": true, // Allow ES.next specific features such as `const` and `let`. | ||
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). | ||
"camelcase": false, // Permit only camelcase for `var` and `object indexes`. | ||
"curly": false, // Require {} for every new block or scope. | ||
"eqeqeq": true, // Require triple equals i.e. `===`. | ||
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` | ||
"latedef": true, // Prohibit variable use before definition. | ||
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`. | ||
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. | ||
"quotmark": "single", // Define quotes to string values. | ||
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions. | ||
"undef": true, // Require all non-global variables be declared before they are used. | ||
"unused": true, // Warn unused variables. | ||
"strict": false, // Require `use strict` pragma in every file. | ||
"trailing": true, // Prohibit trailing whitespaces. | ||
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces | ||
"globals": { // Globals variables. | ||
"angular": false | ||
}, | ||
"predef": [ // Extra globals. | ||
"define", | ||
"require", | ||
"exports", | ||
"module", | ||
"describe", | ||
"before", | ||
"beforeEach", | ||
"after", | ||
"afterEach", | ||
"it" | ||
], | ||
"indent": 2, // Specify indentation spacing | ||
"maxlen": 120, // Max line lenght | ||
"devel": false, // Allow development statements e.g. `console.log();`. | ||
"noempty": true // Prohibit use of empty blocks. | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.10" | ||
env: | ||
- NODE_ENV=travis | ||
services: | ||
- mongodb |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
REPORTER = spec | ||
NODEARGS = | ||
test: | ||
# @./node_modules/grunt-contrib-jshint/node_modules/.bin/jshint ./**/*.js --config .jshintrc &2> /dev/null | ||
@if [ ! -n "$(NODE_ENV)" ]; then NODE_ENV=test NODE_PATH=lib ./node_modules/grunt-nodemon/node_modules/.bin/nodemon -x ./node_modules/.bin/mocha -R $(REPORTER) -t 15000 --recursive test $(NODEARGS); else NODE_PATH=lib ./node_modules/.bin/mocha -R $(REPORTER) -t 15000 --recursive test $(NODEARGS); fi | ||
|
||
start: | ||
@if [ ! -n "$(NODE_ENV)" ]; then NODE_ENV=development NODE_PATH=lib ./node_modules/grunt-nodemon/node_modules/.bin/nodemon server.js $(NODEARGS) ; else NODE_PATH=lib ./node_modules/.bin/foreman start; fi | ||
|
||
mocha: | ||
NODE_PATH=lib ./node_modules/.bin/mocha -R $(REPORTER) -t 15000 --recursive test $(NODEARGS) | ||
|
||
repl: | ||
@NODE_ENV=development NODE_PATH=lib node --debug $(NODEARGS) | ||
|
||
webtest: | ||
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/web-mocha test $(NODEARGS) | ||
|
||
.PHONY: jshint test repl webtest mocha |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,7 @@ | ||
var path = require('path'), | ||
rootPath = path.normalize(__dirname + '/..'); | ||
var _ = require('underscore'); | ||
|
||
module.exports = { | ||
development: { | ||
db: 'mongodb://localhost/mean-dev', | ||
root: rootPath, | ||
app: { | ||
name: 'MEAN - A Modern Stack - Development' | ||
}, | ||
facebook: { | ||
clientID: "APP_ID", | ||
clientSecret: "APP_SECRET", | ||
callbackURL: "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
twitter: { | ||
clientID: "CONSUMER_KEY", | ||
clientSecret: "CONSUMER_SECRET", | ||
callbackURL: "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
github: { | ||
clientID: 'APP_ID', | ||
clientSecret: 'APP_SECRET', | ||
callbackURL: 'http://localhost:3000/auth/github/callback' | ||
}, | ||
google: { | ||
clientID: "APP_ID", | ||
clientSecret: "APP_SECRET", | ||
callbackURL: "http://localhost:3000/auth/google/callback" | ||
} | ||
}, | ||
test: { | ||
db: 'mongodb://localhost/mean-test', | ||
root: rootPath, | ||
app: { | ||
name: 'MEAN - A Modern Stack - Test' | ||
}, | ||
facebook: { | ||
clientID: "APP_ID", | ||
clientSecret: "APP_SECRET", | ||
callbackURL: "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
twitter: { | ||
clientID: "CONSUMER_KEY", | ||
clientSecret: "CONSUMER_SECRET", | ||
callbackURL: "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
github: { | ||
clientID: 'APP_ID', | ||
clientSecret: 'APP_SECRET', | ||
callbackURL: 'http://localhost:3000/auth/github/callback' | ||
}, | ||
google: { | ||
clientID: "APP_ID", | ||
clientSecret: "APP_SECRET", | ||
callbackURL: "http://localhost:3000/auth/google/callback" | ||
} | ||
}, | ||
production: { | ||
db: 'mongodb://localhost/mean', | ||
root: rootPath, | ||
app: { | ||
name: 'MEAN - A Modern Stack - Production' | ||
}, | ||
facebook: { | ||
clientID: "APP_ID", | ||
clientSecret: "APP_SECRET", | ||
callbackURL: "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
twitter: { | ||
clientID: "CONSUMER_KEY", | ||
clientSecret: "CONSUMER_SECRET", | ||
callbackURL: "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
github: { | ||
clientID: 'APP_ID', | ||
clientSecret: 'APP_SECRET', | ||
callbackURL: 'http://localhost:3000/auth/github/callback' | ||
}, | ||
google: { | ||
clientID: "APP_ID", | ||
clientSecret: "APP_SECRET", | ||
callbackURL: "http://localhost:3000/auth/google/callback" | ||
} | ||
} | ||
}; | ||
// Load app configuration | ||
|
||
module.exports = _.extend( | ||
require(__dirname + '/../config/env/all.js'), | ||
require(__dirname + '/../config/env/' + process.env.NODE_ENV + '.json') || {}) ; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var path = require('path'), | ||
rootPath = path.normalize(__dirname + '/../..'); | ||
|
||
module.exports = { | ||
root: rootPath, | ||
port: process.env.PORT || 3000, | ||
db: process.env.MONGOHQ_URL | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"db": "mongodb://localhost/mean-dev", | ||
"app": { | ||
"name": "MEAN - A Modern Stack - Development" | ||
}, | ||
"facebook": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
"twitter": { | ||
"clientID": "CONSUMER_KEY", | ||
"clientSecret": "CONSUMER_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
"github": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/github/callback" | ||
}, | ||
"google": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/google/callback" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"db": "mongodb://localhost/mean", | ||
"app": { | ||
"name": "MEAN - A Modern Stack - Production" | ||
}, | ||
"facebook": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
"twitter": { | ||
"clientID": "CONSUMER_KEY", | ||
"clientSecret": "CONSUMER_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
"github": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/github/callback" | ||
}, | ||
"google": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/google/callback" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"db": "mongodb://localhost/mean-test", | ||
"port": 3001, | ||
"app": { | ||
"name": "MEAN - A Modern Stack - Test" | ||
}, | ||
"facebook": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
"twitter": { | ||
"clientID": "CONSUMER_KEY", | ||
"clientSecret": "CONSUMER_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
"github": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/github/callback" | ||
}, | ||
"google": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/google/callback" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"db": "mongodb://localhost/mean-travis", | ||
"port": 3001, | ||
"app": { | ||
"name": "MEAN - A Modern Stack - Test on travis" | ||
}, | ||
"facebook": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/facebook/callback" | ||
}, | ||
"twitter": { | ||
"clientID": "CONSUMER_KEY", | ||
"clientSecret": "CONSUMER_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/twitter/callback" | ||
}, | ||
"github": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/github/callback" | ||
}, | ||
"google": { | ||
"clientID": "APP_ID", | ||
"clientSecret": "APP_SECRET", | ||
"callbackURL": "http://localhost:3000/auth/google/callback" | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ module.exports = function(grunt) { | |
}, | ||
exec: { | ||
options: { | ||
exec: 'less' | ||
exec: 'less' | ||
} | ||
} | ||
}, | ||
|
Oops, something went wrong.