Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/js
build
test/unit
.gitignore
.travis.yml
README.md
makefile
npm-shrinkwrap.json
package.json

README.md

Mojo TodoMVC Build Status

http://mojo-todomvc-example.herokuapp.com/

Mojo.js Resources

Requirements

Highlights

  • Unit tests run entirely in node.js
  • Coverage tool covers everything, including templates

Mojo Modules Used

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 git@github.com: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