• Jump To … +
    adapter.js collection.js controller.js crud_controller.js database.js docco.js error.js index.js job.js model.js mongo.js queue.js router.js
  • index.js

  • ¶
    "use strict";
  • ¶

    Dependencies

  • ¶

    Depends on config to be a global variable

  • ¶

    Module

  • ¶

    Only used by V2 All your modules are belong to us. Export to global

    var Bootie = {};
    
    Bootie.Backbone = require('backbone');
    Bootie._ = require('lodash');
    Bootie.colors = require('colors');
    Bootie.colors.setTheme({
      silly: 'rainbow',
      input: 'grey',
      verbose: 'cyan',
      prompt: 'grey',
      info: 'green',
      data: 'grey',
      help: 'cyan',
      warn: 'yellow',
      debug: 'blue',
      error: 'red'
    });
  • ¶

    All external libraries

  • ¶
  • ¶

    Database manager Annotated Source

    Bootie.Database = require('./database');
  • ¶

    Router Annotated Source

    Bootie.Router = require('./router');
  • ¶

    Controller. Annotated Source

    Bootie.Controller = require('./controller');
  • ¶

    Crud Controller, extends Controller, adds CRUD routing. Annotated Source

    Bootie.CrudController = require('./crud_controller');
  • ¶

    Model for the ORM. Annotated Source

    Bootie.Model = require('./model');
  • ¶

    Collection for the ORM. Annotated Source

    Bootie.Collection = require('./collection');
  • ¶

    Adapters connect to third-party APIs and services. Annotated Source

    Bootie.Adapter = require('./adapter');
  • ¶

    Errors dawg. Annotated Source

    Bootie.Error = require('./error');
  • ¶

    Queue processor (iron.io) Annotated Source

    Bootie.Queue = require('./queue');
  • ¶

    Queue jobs Annotated Source

    Bootie.Job = require('./job');
  • ¶

    PeeGee is the Postgres database driver. Annotated Source Bootie.PeeGee = PeeGee;

  • ¶

    Mixin Backbone.Events so that Bootie can be a pubsub bus

    Bootie._.extend(Bootie.prototype, Bootie.Backbone.Events, {
      VERSION: '0.1.5'
    });
  • ¶

    Export to the world

    module.exports = Bootie;