Contains core libraries, models, and setup used by both umbrld and umbrld-api
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
models
.gitignore
index.js
package.json
readme.md

readme.md

umbrld-core

A node.js module that contains the basic utility libs and data models for umbrld and umbrld-api.

Install

package.json
{
  "dependencies": {
    "umbrld-core": "https://github.com/Umbrld/umbrld-core/archive/master.tar.gz"
  }
}

Usage

var core    = require('umbrld-core');
var conf    = core.require('conf');
var models  = core.require('models');
var User    = models.require('user').model();

User.find(...)
	.exec()
	.then(function() {
		// ...
	});