rishson / dojoEnterpriseApp

Boilerplate 'enterprise' app using Dojo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DojoEnterpriseApp

===================

DojoEnterpriseApp is an abstracted application framework for large web applications that use the [Dojo toolkit] (www.dojotoolkit.org).

The project was inspired by dojoBoilerplate from Rebecca Murphey. Thanks must also go to Craig Barker for putting the first version through its paces, and the guys at Sitepen for their additions of awesomeness.

Please see the wiki for more details on what the scripts and JavaScript objects do.

The main features are:

All kinds of other people's awesome

  • self bootstrapping - pulls in dependencies via setup script (uses wget or curl)
  • pulls in less.js and wire.js
  • depends on node.js (for running less.js), npm and Java (for the dojo build)

Extensible scripts

  • scripts to pull in framework dependencies
  • scripts to create an 'application' (single page web app)
  • scripts to create templated and non-templated widgets (including test pages, less files..)
  • scripts to test widgets in a variety of browsers (chrome, FireFox, Safari and Chromium)
  • scripts to create a compressed, minified build using the dojo builder

JavaScript code to provide an abstracted control layer with:

  • abstracted communications protocols so that 'real' servers can be mocked during unit tests.
  • abstracted server calls (REST and WebServices) to introduce clean separation of concerns so that code is not littered with Urls and thus easier to refactor.
  • provides a central location to perform work on all server calls (such as applying security policies, auditing, url resolution etc).

JavaScript code to provide useful unit testing abilities:

  • mock xhr requests
  • mock server endpoints or 'services'
  • mock dojo data stores

Common set of application widgets:

  • _Widget base class that provides life-cycle management based on Phil Higgins's solution to memory leaks with custom dojo widgets that programatically create widgets.
  • a full-page container widget (with plugins for common 'enterprise' features such as session management - coming soon).

About

Boilerplate 'enterprise' app using Dojo

License:ISC License


Languages

Language:JavaScript 87.7%Language:Shell 9.9%Language:CSS 2.4%