Personal tests of backbone.validation plugin. This project uses marionette-boilerplate.
- Mongodb
- Install on Ubuntu
- Install on OS X
- Yeoman: required by generator-marionette
- generator-marionette: Allows the use of yo command to generate routers, models, views ...
$ git clone [email protected]:kiki-le-singe/marionette-boilerplate.git
$ cd marionette-boilerplate
$ npm install
$ bower install
$ grunt serve
Then serve the app on localhost:9000
and opens your default browser
$ grunt serve --stub
Makes the same thing that the above command, except that the 'stub' option allows to enabled or not the retrieving of fake datas.
$ grunt test
Runs tests located in /tests/js/spec
.
You can access tests in your browser, simply create a vhost.
$ grunt dist
Build the application in /dist
.
$ grunt release
Create a .tgz archive named marionette-boilerplate-[version]
.
$ grunt docs
Generates a html doc of your documented code in /docs
and open it in your browser.
- Backbone.js
- Marionette.js
- Backbone.babysitter
- Backbone.wreqr
- Require.js
- jQuery 2
- Lo-Dash
- Handlebars
- Modernizr
By default the root access for the API is http://localhost:9000/api. Available example: http://localhost:9000/api/libraries
The library used for tests are :
The configuration of the application is located in /app/config
Handlebars helpers is located in /app/scripts/helpers
- Yeoman
- generator-marionette: Marionette Boilerplate is based on it
- mongo-express: If you use MongoDB, look at this node modules. It's an convenient admin interface for MongoDB.
- To enjoy livereload don't forget download the chrome plugin.