mojo-todomvc-example
v0.1.2
Published
http://mojo-todomvc-example.herokuapp.com/
Downloads
5
Readme
Mojo TodoMVC
http://mojo-todomvc-example.herokuapp.com/
Mojo.js Resources
Requirements
- Node.js - needed for unit testing and browserify
Highlights
- Unit tests run entirely in node.js
- Coverage tool covers everything, including templates
Mojo Modules Used
- mojo-application - Main entry point to application
- mojo-models - Models
- mojo-views - View Controller
- mojo-paperclip - Template engine
- mojo-router - http router
- mojo-mediator - commands / mediator
Project Structure
app/
js/
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
test/
unit/ - unit test files. These run in node.
Installation
git clone [email protected]:mojo-js/mojo-todomvc-example.git && cd mojo-todomvc-example && npm install;
Commands
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