digidem / simple-odk

A minimal ODK server for receiving form submissions from a mobile device and saving them as JSON on github
19 stars 9 forks source link

Adding forms? #6

Closed MartijnR closed 9 years ago

MartijnR commented 9 years ago

It's not clear to me how to add forms. Is there an interface for this?

gmaclennan commented 9 years ago

No, there is no interface for this yet. For Github, place the form .xml in a folder forms in the root of the github repo, or you can place it in a sub-folder. If there is any media linked in the form xml, it will look for it in the same folder as the form xml file. I keep each form with its associated media in a subfolder under the folder forms.

For Gists, just put the form xml as a file in the Gist. It will look for anything with a .xml extension.

Nothing is implemented for Firebase yet.

All this needs more documentation, and a user interface, since uploading xml files directly to Github is a little clunky.

MartijnR commented 9 years ago

Ok. Thanks.

Nice work. Not sure if this is useful at all (probably not, because you've implemented the formList API already) but just in case: this was a similar effort I started last year (and then had no time to continue) https://github.com/enketo/centro