Skip to content

Commit

Permalink
Add mongo db
Browse files Browse the repository at this point in the history
  • Loading branch information
Fblind committed Feb 22, 2016
1 parent 4aa802d commit b86facd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"errorhandler": "^1.1.1",
"loopback": "^2.14.0",
"loopback-boot": "^2.6.5",
"loopback-connector-mongodb": "^1.13.3",
"loopback-datasource-juggler": "^2.19.0",
"serve-favicon": "^2.0.1"
},
Expand Down
9 changes: 9 additions & 0 deletions server/datasources.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
"db": {
"name": "db",
"connector": "memory"
},
"todoMongo": {
"name": "todoMongo",
"connector": "mongodb",
"host": "127.0.0.1",
"database": "todoDB",
"username": "",
"password": "",
"port": 27017
}
}
14 changes: 7 additions & 7 deletions server/model-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@
]
},
"User": {
"dataSource": "db"
"dataSource": "todoMongo"
},
"AccessToken": {
"dataSource": "db",
"dataSource": "todoMongo",
"public": false
},
"ACL": {
"dataSource": "db",
"dataSource": "todoMongo",
"public": false
},
"RoleMapping": {
"dataSource": "db",
"dataSource": "todoMongo",
"public": false
},
"Role": {
"dataSource": "db",
"dataSource": "todoMongo",
"public": false
},
"todo": {
"dataSource": "db",
"dataSource": "todoMongo",
"public": true
},
"category": {
"dataSource": "db",
"dataSource": "todoMongo",
"public": true
}
}

0 comments on commit b86facd

Please sign in to comment.