Modern Backbone Starter-kit
This project provides a prepared development environment based on Gulp, Backbone, Babel and Webpack. You can use it to quickly bootstrap your web application projects. All the parts of this project template are easily replaceable.
Getting Started
Just clone or fork the repo and start hacking:
$ git clone -o upstream https://github.com/sabarasaba/modern-backbone-starterkit.git AwesomeApp && cd $_
$ npm install -g gulp karma-cli # Install Gulp task runner and Karma test runner globally
$ npm install # Install Node.js components listed in ./package.json
A Note on ES Classes
ES2015 Classes do not work well with Backbone or Marionette at time of writing. See jashkenas/backbone#3560. Use Backbone's built in extend functions to get around this for the time being.
Development
Builds the application and starts a webserver with livereload. By default the webserver starts at port 1337.
$ gulp
By default, it builds in debug mode.
- If you need to build in release mode, add
--type production
flag. - You can define a port with
--port 3333
flag.
Build
Builds a minified version of the application in the dist folder.
$ gulp build --type production
How to Update
You can always fetch and merge the recent changes from this repo back into your own project:
$ git checkout master
$ git fetch upstream
$ git merge upstream/master
$ npm install
How to Test
Run unit tests and integration tests are powered by Karma, Mocha and Chai:
$ karma start
Learn More
- Backbone.js
- Handlebars
- Marionette.js
- Karma - Spectacular test runner
- Webpack
- Babel - Use next generation JavaScript, today
Support
Have feedback, feature request or need help? Create an issue !
Copyright
Licensed under MIT License (MIT). See LICENSE.txt