Permalink
Browse files

Add mongo db

  • Loading branch information...
Fblind committed Feb 22, 2016
1 parent 4aa802d commit b86facded30ca4e24f5f3680449d6d72105f9d0f
Showing with 17 additions and 7 deletions.
  1. +1 −0 package.json
  2. +9 −0 server/datasources.json
  3. +7 −7 server/model-config.json
View
@@ -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"
},
View
@@ -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
}
}
View
@@ -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.