Skip to content

bentranter/five3one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

five3one

A simple mobile web app to track your exercise.

Usage

Start RethinkDB then start the server:

$ rethinkdb # then in another window,
$ npm start

Test

With RethinkDB and the server started,

$ npm run test

Weird Backbone Practice

To handle the views, I appended each template to the <body>, and toggled visibility with the router. This way, you don't lose your "session" when you're entering a new workout, and you can optimistically update things in other tabs (which you normally wouldn't be able to do, since those tabs wouldn't be attached to the DOM).

This is kind of bad, since some of your app's state ends up in your views. Normally, state should be in your models but this lets us avoid hitting the network every time a user completes a set (to sync the changes to that exercise model). It also prevents us from ripping out the DOM every time a user decides to change tabs.

License

MIT. See LICENSE.md

About

Backbone webapp for tracking your exercise.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors