forked from linnovate/mean
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
129 additions
and
124 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
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
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 @@ | ||
module.exports = { | ||
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 was deleted.
Oops, something went wrong.
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 @@ | ||
module.exports = { | ||
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 was deleted.
Oops, something went wrong.
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 @@ | ||
module.exports = { | ||
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 was deleted.
Oops, something went wrong.
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
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
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,15 +1,7 @@ | ||
window.bootstrap = function() { | ||
angular.bootstrap(document, ['mean']); | ||
}; | ||
|
||
window.init = function() { | ||
window.bootstrap(); | ||
}; | ||
|
||
angular.element(document).ready(function() { | ||
//Fixing facebook bug with redirect | ||
if (window.location.hash == "#_=_") window.location.hash = ""; | ||
|
||
//Then init the app | ||
window.init(); | ||
angular.bootstrap(document, ['mean']); | ||
}); |
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,9 +1,12 @@ | ||
angular.module('mean.system').factory("Global", [function() { | ||
var _this = this; | ||
_this._data = { | ||
user: window.user, | ||
authenticated: !! window.user | ||
}; | ||
//Global service for global variables | ||
angular.module('mean.system').factory("Global", [ | ||
function() { | ||
var _this = this; | ||
_this._data = { | ||
user: window.user, | ||
authenticated: !! window.user | ||
}; | ||
|
||
return _this._data; | ||
}]); | ||
return _this._data; | ||
} | ||
]); |
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,6 +1,14 @@ | ||
<section data-ng-controller="ArticlesController" data-ng-init="findOne()"> | ||
<span>{{article.created | date:'medium'}}</span> / | ||
<span>{{article.user.name}}</span> | ||
<h2>{{article.title}} <a data-ng-show="global.user._id == article.user._id" href="/#!/articles/{{article._id}}/edit">edit</a></h2> | ||
<div>{{article.content}}</div> | ||
</section> | ||
<span>{{article.created | date:'medium'}}</span>/ | ||
<span>{{article.user.name}}</span> | ||
<h2>{{article.title}}</h2> | ||
<div data-ng-show="global.user._id == article.user._id"> | ||
<a class="btn" href="/#!/articles/{{article._id}}/edit"> | ||
<i class="icon-edit"></i> | ||
</a> | ||
<a class="btn" data-ng-click="remove();"> | ||
<i class="icon-trash"></i> | ||
</a> | ||
</div> | ||
<div>{{article.content}}</div> | ||
</section> |
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