Home Automation Console based on JQuery, Backbone, Marionette application using Require.js, Bower, Grunt and LESS
Installing this project:
-
Clone this repository:
git clone [email protected]:dario01/domotics.git
-
Install all npm dependencies defined in package.json:
npm install
-
Install all Bower dependencies defined in bower.json:
bower install
grunt
karma start test/js/karma.conf.js
grunt jsdoc
app/index.html
Just add an instance to the JSON-LD file at rest/test/domotic-items
Sensors are read-only, so all you need to do is create a template under app/templates/item
with the same name as the domotic item type (but in camel case).
For more complex scenarios, you can have a custom view or model by adding elements to:
-
app/js/view/DomoticViewMapper
-
app/js/model/DomoticModelMapper
See respective examples under:
-
app/js/view/item
-
app/js/model/item
Note: Please keep the schema at schema/domotics.owl.jsonld
up-to-date.
Many thanks to:
- http://todomvc.com/
- http://blog.joanboixados.com/skeleton-for-a-backbone-marionette-application-using-require-js-bower-grunt-and-less/
- https://github.com/BoilerplateMVC/Marionette-Require-Boilerplate
- http://karma-runner.github.io/0.13/plus/requirejs.html
- https://github.com/kjbekkelund/karma-requirejs
- https://github.com/jonmiles/bootstrap-treeview