latest changes

This commit is contained in:
Dobie Wollert
2015-07-19 21:31:10 -04:00
parent 4496b9c240
commit 24f4acc1d3
15 changed files with 671 additions and 13 deletions

17
cli.js Normal file
View File

@ -0,0 +1,17 @@
var fs = require('fs');
var env = 'prod',
config = require('./config/config')[env],
mongoose = require('mongoose'),
Promise = require('bluebird');
// bootstrap db connection
mongoose.set('debug', config.debug);
mongoose.connect(config.database);
// bootstrap model
var modelPath = __dirname + '/app/model'
fs.readdirSync(modelPath).forEach(function (file) {
require(modelPath + '/' + file)
})