export const dbURI = (() => {
  if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
    return 'mongodb://localhost/trelloCloneApi';
  } else {
    return 'mongodb://mongo:27017/trelloCloneApi';
  }
})();

export const port = (() => {
  if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
    return 3001;
  } else {
    return 80;
  }
})();

export const dbTestURI = 'mongodb://localhost/trelloCloneApiTest';

export const secret = 'apiTest';
export const dbURI = (() => {
  if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
    return 'mongodb://localhost/trelloCloneApi';
  } else {
    return 'mongodb://mongo:27017/trelloCloneApi';
  }
})();

export const usersMicroserviceUrl = (() => {
  if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
    return 'http://localhost:3002';
  } else {
    return 'http://usersmicroservice:3002';
  }
})();

export const dbTestURI = 'mongodb://localhost/trelloCloneApiTest';

export const secret = 'apiTest';

export const port = 3001;
Use port 3001 as a default port
Use port 3001 as a default port
