mojo-todomvc-example

0.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mojo-todomvc-example

Weekly Downloads

8

Version

0.1.2

License

BSD

Last publish

Collaborators

  • architectd
  • crcn