Skip to content

Instantly share code, notes, and snippets.

@neurotech
Last active August 29, 2015 14:04
Show Gist options
  • Save neurotech/ae6cebd8812370d93f6a to your computer and use it in GitHub Desktop.
Save neurotech/ae6cebd8812370d93f6a to your computer and use it in GitHub Desktop.
var config = {};
config.express = {
host: "http://localhost",
port: 3000
};
config.db2 = {
host: 'xyz',
port: '123456',
suffix: '/PATH',
username: 'user',
password: 'SECRET'
};
config.init = {
libpath: ('./drivers/db2jcc.jar'),
drivername: 'com.ibm.db2.jcc.DB2Driver',
url: 'jdbc:' + 'db2://' + config.db2.host + ':' + config.db2.port + config.db2.suffix + ':user=' + config.db2.username + ';password=' + config.db2.password + ';'
};
config.cache = {
value: 30,
units: "seconds",
path: "./db/"
};
module.exports = config;
var thing = {
item: "value",
other: "different value",
stuff: {
newItem: this.item,
otherItem: this.other
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment