iLanguage/iField — pull request #255 by cesine (2012-07-01 17:52:11+00:00)
Title: Users can now login and sync down their data from the welcome screen

I created a user for myself, synced it to iriscouch. Now i can start building out my own corpus, the app is working. Reordered loading a bit to put most of the authentication logic and loading logic where it should be (in the app and authentication classes).

What is new in this pull
* User can register a new account
* The app wipes all local data and local indexdb on page load (so we can test a fresh install)
* User can use the login button on the welcome modal to sync down his/her existing data. It uses an array of ids (corpus, session, datalist, user) of recent objects that the user has used, replicates the iriscouch to pouch, and calls fetch on those objects, loading them into the app. It works. I can pick up where i left off on a new computer.

What's working
* register new user
* sync user's data down to a new computer
* load sapir's sample data

What's next
* Dont wipe the local pouch upon page load
* Install couch and mongodb on EC2 and change the Utils.authUrl to point to the EC2 instance rather than localhost
* Proxy the pouch requests to EC2 and check permissions
* (here are tons of small things that have to be done in the handlebars and views, we dont have full suite of editable, readonly embedded and fullscreen handlebars)