Short description..
- BackboneJS
- MarionetteJS
- Browserify
- Grunt
- Sass
- CoffeeScript
- NPM
curl -L https://npmjs.org/install.sh | sh
| Install Node and NPMnpm install -g grunt-cli
| Install the Grunt command-line interface globallynpm install -g bower
| (Install bower through npm globally)npm install -g coffee-script
| Install CoffeeScript globallygit clone [email protected]:miphe/backbone-seed.git
| Clone repository
npm install
| Install all node dependencies locallybower install
(Install all bower dependencies locally)
grunt dev-s
| Run a few select grunt tasks and spin up HTTP server
The server can be reached at localhost:9001
In case you feel like running a different HTTP server, have a look at Gruntfile.js
to see which tasks are available to you there.
When running grunt dev-d
or grunt dev-sd
you will automatically generate all front-end documentation. The generated pages are ignored by git.
The documentation will land in the /docs folder under /sassdoc and /jsdoc, they are not a part of the Backbone application. You can view this either with any HTTP server, or simply running it's index.html page in a browser.
Sass documentation is generated with SassDoc in JSDoc style.
CoffeeScript documentation is generated from .js files with JSDoc in JSDoc style. However, with CoffeeScript the regular JSDoc comments will be invalid. To comment documentation JSDoc style with CoffeeScript, write it like this:
###*
# onStart hook
# Runs appropriate setup when application starts
# @param {object} options Options where environment variables and initial setup data is supplied
# @example
# onStart: ({env: {..}, rootView: '#some-root-view-id'}) ->
# // Do things..
###