The Backbone application that powers Path Tale's link-management platform.
JavaScript
PathTale-Backbone
This is the backbone application that powers our link management platform, used by organizations and their team members. I posted this as supporting code to a recent post I made about some of the things I've learned using Backbone.
The application is initialized in the appCore.js file:
```js
// Start the main app logic.
require(['domReady','app/appInitialize','jquery','bootstrap','placeholder','iecors','marionette','avgrund','hexorator','joyride'],function(domReady,appInitialize,$,bootstrap,placeholder,iecors,marionette,avgrund,hexorator,joyride){
appInitialize.initialize();
});
```
The initialize method is located in the appInitialize.js file, in the app folder. This method creates a global App object, starts the router and sets-up the App's Marionette regions.
```js
define([
'jquery',
'underscore',
'backbone',
'appObject',
'app/router'
],function($, _, Backbone, App, Router){
var initialize = function(){
App.addRegions({
nav : "#top-nav",
main : "#main-content-body",
modals : "#misc-modal-holder"
})
App.addInitializer(function(options){
Router.initialize();
})
App.start();
return App;
}
return{
initialize: initialize
};
})
```