ToDo Lite Code Tour

ToDo Lite is a task tracking application available for multiple platforms in the iOS and Android app stores, so you can install it easily to try it out without setting up a development environment. Or follow the per-platform build instructions in the getting started documentation, which will get you set up with a local development copy of ToDo Lite in your language.

Here are links to the code ToDo Lite versions for Android, iOS, PhoneGap, and Ruby Motion. What holds the different implementations together is that they all interoperate on the same data, via the same sync function described in the getting started documention.

Articles


Application Launch
Create handle to Couchbase Lite database, init config.
Create and Update Task Documents
Interact with data via models.
Attach a Photo
Photos are stored as binary attachments to the associated task document
Login and Sync
Don't forget to tag user data with their id after they log in, but before you sync.
Sharing Lists
Who you share task lists with.
What's Missing?
Some things don't belong in an example app. How could we take it to the next level?