Skip to content

Commit

Permalink
add, configured and create database #8
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoRPS committed Oct 1, 2017
1 parent 10bea5f commit 2524e75
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "eslint .",
"start": "node .",
"posttest": "npm run lint && nsp check",
"develop": "./node_modules/nodemon/bin/nodemon.js --debug .",
"test-api": "./node_modules/dredd/bin/dredd openapi.yaml http://localhost:3000/v1"
},
"dependencies": {
Expand All @@ -19,13 +20,15 @@
"loopback": "^3.0.0",
"loopback-boot": "^2.6.5",
"loopback-component-explorer": "^5.0.0",
"loopback-connector-mongodb": "^3.2.1",
"serve-favicon": "^2.0.1",
"strong-error-handler": "^2.0.0"
},
"devDependencies": {
"dredd": "^4.5.0",
"eslint": "^3.17.1",
"eslint-config-loopback": "^8.0.0",
"nodemon": "^1.12.1",
"nsp": "^2.1.0"
},
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions server/datasources.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"db": {
"name": "db",
"connector": "memory"
},
"document": {
"connector": "mongodb",
"url": "${MONGO_URI}"
}
}
20 changes: 10 additions & 10 deletions server/model-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,46 @@
]
},
"User": {
"dataSource": "db",
"dataSource": "document",
"public": false
},
"AccessToken": {
"dataSource": "db",
"dataSource": "document",
"public": false
},
"ACL": {
"dataSource": "db",
"dataSource": "document",
"public": false
},
"RoleMapping": {
"dataSource": "db",
"dataSource": "document",
"public": false,
"options": {
"strictObjectIDCoercion": true
}
},
"Role": {
"dataSource": "db",
"dataSource": "document",
"public": false
},
"NGO": {
"dataSource": "db",
"dataSource": "document",
"public": true
},
"Demand": {
"dataSource": "db",
"dataSource": "document",
"public": true
},
"Thing": {
"dataSource": "db",
"dataSource": "document",
"public": false
},
"Organization": {
"dataSource": "db",
"dataSource": "document",
"public": false
},
"LocalUser": {
"dataSource": "db",
"dataSource": "document",
"public": true
}
}

0 comments on commit 2524e75

Please sign in to comment.