Skip to content

Seed project with Backbone + Marionette, Grunt and Browserify.

License

Notifications You must be signed in to change notification settings

miphe/backbone-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backbone seed project

Short description..

App tech stack

  • BackboneJS
  • MarionetteJS

Development tools

  • Browserify
  • Grunt
  • Sass
  • CoffeeScript
  • NPM

Getting started

Prerequisites

  • curl -L https://npmjs.org/install.sh | sh | Install Node and NPM
  • npm install -g grunt-cli | Install the Grunt command-line interface globally
  • npm install -g bower | (Install bower through npm globally)
  • npm install -g coffee-script | Install CoffeeScript globally
  • git clone [email protected]:miphe/backbone-seed.git | Clone repository

Install project

  • npm install | Install all node dependencies locally
  • bower install (Install all bower dependencies locally)

Start development

  • 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.

Documentation

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

Sass documentation is generated with SassDoc in JSDoc style.

CoffeeScript

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..
###

About

Seed project with Backbone + Marionette, Grunt and Browserify.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published