iamchrismiller / js-boilerplate

This is my basic Boilerplate For Most Javascript Based Applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Base Javascript Boilerplate

This is a hodgepodge of newer libraries that I use on most of my front end projects. The directory structure and application structure is a bit biased and is something i've been tweaking from project to project. I'd appreciate your feedback and am always willing to improve what I work with.

Adopted OpenSource Libraries/Frameworks

  • Backbone ('Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.' - http://backbonejs.org/)

  • Backbone.Marionette

  • Jasmine

  • jQuery

    • ('a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions' - http://jquery.com)
  • RequireJS

  • Sass

    • ('makes CSS fun again. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. - http://sass-lang.com/)

Directory Structure

  .
  ├── .gitignore
  ├── grunt.js
  ├── README.md
  ├── LICENSE.md
  │
  ├── assets
  │   ├── ico
  │   └── img
  ├── public
  │   ├── humans.txt
  │   ├── index.html
  │   ├── doc
  │   ├── js
  │   │   ├── main.js
  │   │   ├── collections
  │   │   │   └── <CollectionName>.js
  │   │   ├── core
  │   │   │   ├── BaseCollection.js
  │   │   │   ├── BaseModel.js
  │   │   │   └── config.js
  │   │   ├── models
  │   │   │   └── <ModelName>.js
  │   │   │── vendor
  │   │   │   ├── backbone-<*>.js
  │   │   │   ├── backbone.marionette-<*>.js
  │   │   │   ├── underscore-<*>.js
  │   │   │   ├── jquery-<*>.js
  │   │   │   ├── tpl.js
  │   │   │   └── require-<*>.js
  │   │   └── viewports
  │   │   │   └── desktop
  │   │   │       ├── application.js
  │   │   │       └── router.js
  │   │   └── views
  │   ├── css
  │   │   ├── bootstrap.css
  │   │   └── main.scss
  │   └── templates
  └── test
      ├── index.html
      ├── jasmin
      │   ├── jasmine-html.js
      │   ├── jasmine-css.js
      │   └── jasmine.js
      └── spec
          └── <specController>.js

About

This is my basic Boilerplate For Most Javascript Based Applications

License:MIT License


Languages

Language:JavaScript 100.0%