Skip to content
Joel Lonbeck edited this page Jul 31, 2015 · 9 revisions

The uploader handles submitting data to the server. This module will primarily be used in the Backup and Publish UX.

##Interface

  • register(String host, int port, String deviceId) registers the device with the server
  • verifyProfile(ts.User profile) check if the profile is ready to be uploaded
  • uploadProfile(ts.User profile) uploads a user profile to the server
  • verifyProject(ts.Translator.Project project) checks if the project is ready to be uploaded
  • getQuestions(ts.Translator.Project project) returns a list of checking questions for the project
  • updateQuestions(ts.Translator.Project project, someArray) saves the state of questions displayed to the user
  • uploadProject(ts.Translator.Project project) uploads a project to the server

###Register This module will submit ssh keys to the server so that the app can push git repositories to the server. The code and specs for the server side of this method can be found at https://github.com/unfoldingWord-dev/ts-server.

This method should generate key pairs if needed.

TODO: finish writing up the spec for this.