Mojo Modules Used
- Unit tests run entirely in node.js
- Coverage tool covers everything, including templates
entry.js - initializes the application and adds to the body of the DOM
index.js - main application class
views/ - all view controllers & templates displayed to the user
routes/ - all HTTP routes. controls the view state of the application
models/ - all data models for the application. Controls all information.
commands/ - global commands for the application.
build/ - output folder where app is built to
unit/ - unit test files. These run in node.
git clone firstname.lastname@example.org:mojo-js/mojo-todomvc-example.git && cd mojo-todomvc-example && npm install;
npm start - starts the todoMVC http server on port 8085
npm test - runs all the todoMVC tests
npm run hotswap - runs the hotswap script for debugging
npm run build - builds the application as one js file
make test-cov - build coverage report
make test-watch - run the tests & re-run whenever a file changes