Note: some auto-generated top-level directories have been ommitted for brevity or excluded from the .zip for size considerations.
- app/ --- client application
- gulp/ --- build tasks
- platforms/ --- Cordova platforms
- plugins/ --- Cordova plugins
- Gulpfile.coffee --- build configuration
- package.json --- dependency management
- config.xml --- Cordova configuration
- img/ - Images (only stores logo.png)
- sass/ --- SASS & style dependencies
- coffee/ --- CoffeeScript source files
- behaviors/ --- Behaviors
- components/ --- Components
- config/ --- Configuration files
- modules/ --- Modules
- services/ --- Services
- manifest.coffee --- manifest
- app.coffee --- Application class
- component_name/ --- Each Component in a separate directory
- component.coffee --- Component controller
- views/ --- Component views
- layout.coffee
- templates/ --- Component templates
- component.jade
Modules represent collections of endpoints in the application. They always have a Router and at least one Route, and often have Models, Collections, and Services.
NOTE: The complexity of directory structure in Modules and Components may seem redundant, but the opinions enforced by this structure work effectively to ensure scalability of the application from a development perspective.
- module_name/ --- Each Module in a separate directory
- route_01/
- views/ --- Route views
- layout.coffee
- templates/ --- Route templates
- module.jade
- views/ --- Route views
- route_02/
- .../ --- (modules can have many routes)
- collection.coffee --- Backbone.Collection
- model.coffee --- Backbone.Model
- router.coffee --- Router
- service.coffee --- Service
- route_01/