An Application Architecture Using Backbone.js
Download the latest release on chaplinjs.org. See below on how to compile from source manually.
Our build script compiles the CoffeeScripts and bundles them into one file. To run the script, follow these steps:
Download and install Node.js.
Open a shell (aka terminal aka command prompt) and type in the commands in the following steps.
Change into the Chaplin root directory.
Install all dependencies
Start the build
npm run build install
This creates these files in
chaplin.min.js– Minified. For production use you should pick this.
Running the Tests
Chaplin aims to be fully unit-tested. At the moment most of the modules are covered by Mocha tests.
How to run the tests:
- Follow the steps for building chaplin.
- Open a shell (aka terminal aka command prompt) and type in the commands in the following steps.
- Change into the Chaplin root directory.
Start the test runner.
or alternatively, if you want code coverage reports
npm run coverage
Generated code coverage reports may be viewed by opening
coverage/index.html in your browser.