var restify = require('restify');
var knex = require('knex')({
  client: 'mysql',
  connection: {
    host     : '127.0.0.1',
    user     : 'root',
    password : 'root',
    database : 'brestful_test',
    charset  : 'utf8'
  }
});
var bookshelf = require('bookshelf')(knex);
var server = restify.createServer({
  name: 'TestApp'
});

exports.server = server;
exports.bookshelf = bookshelf;
exports.knex = knex;
var restify = require('restify');
var knex = require('knex')({
  client: 'mysql',
  connection: {
    host     : '127.0.0.1',
    user     : 'root',
    password : 'root',
    database : 'brestful_test',
    charset  : 'utf8'
  }
});
var bookshelf = require('bookshelf')(knex);
var server = restify.createServer({
  name: 'TestApp'
});

exports.server = server;
exports.bookshelf = bookshelf;
exports.knex = knex;
exports.createServer = function() {
  return restify.createServer({
    name: 'TestApp'
  });
};
exports.client = restify.createJSONClient({
  url: 'http://localhost:5000'
});
Add function to create server and exporting test client
Add function to create server and exporting test client
