text: 'use strict';
  
  const mongoose = require('mongoose');
  const uri = process.env.MONGOLAB_URI || 'mongodb://localhost/filebucket';
  mongoose.Promise = global.Promise;
  mongoose.connect(uri);
  
  module.exports = mongoose;
  