Montage Data is a framework that allows Montage applications to easily exchange data with servers. It maps server data to model objects accessible in application code, allowing complex server operations to be performed by reading and writing the properties of model objects obtained with simple queries and by traversing relationships.
Montage Data is an Object Service Mapping (OSM) framework: Just like an Object Relational Mapping (ORM) framework maps relational data to application objects and vice versa, Montage Data maps REST and other services to application objects and vice versa.
Documentation can be generated by installing JSDoc 3.3.3 or newer and executing
jsdoc -c .jsdoc.conf.json
in the root of the project, and it can be read by
opening the resulting out/doc/index.html
in a web browser.
Developers editing Montage Data on OS X can make the documentation update
automatically whenever the source changes by copying the source's .watch.plist
file to ~/Library/LaunchAgents/com.kaazing.montagedata.watch.plist
, then
editing that file to replace all occurences of "/absolute/path/to/montage-data/"
with the absolute path of the source directory, and then running the following
in a terminal:
launchctl load ~/Library/LaunchAgents/com.kaazing.montagedata.watch.plist
launchctl start ~/Library/LaunchAgents/com.kaazing.montagedata.watch.plist
Tests are in the test
directory. Use npm test
to run the tests in
NodeJS or open test/run.html
in a browser.
To run the tests in your browser, simply use npm run test:jasmine
.
To run the tests using Karma use npm run test:karma
and for continious tests run with file changes detection npm run test:karma-dev
.