module.exports = { current: {server: "192.168.1.184", port: "60666"}, local: {server: "localhost", port: "27017"}, qa: {server: "192.168.1.184", port: "60666"}, pp:{server: "172.18.111.228", port: "27017"}, prod: {server: "", port: ""}, setupDb:function (env="local") { let me = this; me.current.server = me[env].server; me.current.port = me[env].port; }, pageSize: 30 }