-
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.
getting auth and user population in session working
- Loading branch information
Warner Onstine
committed
Jan 9, 2015
1 parent
de712b2
commit a8ec1ce
Showing
16 changed files
with
289 additions
and
48 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
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,3 +1,4 @@ | ||
| { | ||
|
|
||
| "port": 5536, | ||
| "mongo": "mongodb://localhost/todo-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
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,28 @@ | ||
| var TodoModel = function(){ | ||
|
|
||
| var | ||
| mongoose = require("mongoose"), | ||
| Schema = mongoose.Schema; | ||
|
|
||
| var _jsonSchema = { | ||
| _id: {type:Schema.Types.ObjectId, "default":mongoose.Types.ObjectId}, | ||
| text: String, | ||
| created: {type: Date, "default": Date.now}, | ||
| completed: {type:Boolean, "default": false}, | ||
| completedOn: Date, | ||
| position: {type:Number, "default":0} | ||
| }; | ||
|
|
||
| var _schema = mongoose.Schema(_jsonSchema); | ||
|
|
||
| var _model = mongoose.model("Todo", _schema); | ||
|
|
||
| return { | ||
| Schema: _schema, | ||
| Model: _model, | ||
| jsonSchema: _jsonSchema | ||
| }; | ||
|
|
||
| }(); | ||
|
|
||
| module.exports = TodoModel; |
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,11 @@ | ||
| module.exports = [ | ||
| { | ||
| name: "Warner Onstine", | ||
| email: "warner@test.com" | ||
| }, | ||
| { | ||
| name: "Warner Test2", | ||
| email: "warner2@test.com" | ||
| } | ||
|
|
||
| ]; |
Oops, something went wrong.