/** * Created by mdonnel on 27/06/2017. */ /* We've moved to cloudant through IBM Bluemix for the database https://25f854ee-1b51-49ff-acd9-5b0ff478d944-bluemix.cloudant.com/dashboard.html#usage */ const credentials = { 'username': '25f854ee-1b51-49ff-acd9-5b0ff478d944-bluemix', 'password': '8e417af1b0462ca55726848846cc6b8696fc76defe9d1864cbc334be59549e0c', 'host': '25f854ee-1b51-49ff-acd9-5b0ff478d944-bluemix.cloudant.com', 'port': 443, 'url': 'https://25f854ee-1b51-49ff-acd9-5b0ff478d944-bluemix:8e417af1b0462ca55726848846cc6b8696fc76defe9d1864cbc334be59549e0c@25f854ee-1b51-49ff-acd9-5b0ff478d944-bluemix.cloudant.com', 'database': 'keeper' }; const cloudant = require('cloudant'); const cloudantConnection = cloudant({account: credentials.username, password: credentials.password}); exports.dbcloudant = cloudantConnection.db.use(credentials.database);