imf-data-nodejs-sdk
Version:
IMFData Cloudant Node.js SDK
40 lines (37 loc) • 1.21 kB
JavaScript
/**
* Copyright 2015 IBM Corp. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* To run tests edit this file or set the following environment variables
*/
var config = {
protocol: process.env.PROTOCOL,
domain: process.env.DOMAIN,
appId: process.env.APP_ID,
AdvancedMobileAccess: {
serverUrl: process.env.SERVER_URL,
clientId: process.env.CLIENT_ID,
secret: process.env.SECRET,
tenantId: process.env.TENANT_ID
}
};
var cloudant = {
credentials: {
username: process.env.CLOUDANT_USER,
password: process.env.CLOUDANT_PASS
}
};
module.exports = config;
module.exports.cloudant = cloudant;