enketo / enketo-dristhi

Customized enketo-core to be used in hybrid Android app called Dristhi
Apache License 2.0
2 stars 10 forks source link

enketo-dristhi Build Status

Extended enketo-core for use in Dristhi, a hybrid Android app. External Drishti/Android depencies are mocked so it can be run in the browser.

To use as library:

  1. install node (and npm), grunt-cli, ruby, rubygems, and the sass gem (gem install sass).
  2. clone repo
  3. get (or update) submodules git submodule update --init --recursive
  4. Use grunt to build.
  5. start webserver with grunt server.
  6. go to http://localhost:8080/build/index.html to see list of links to all Dristhi forms
  7. note that the index.html list includes instance=a which belongs to form EC_Registration_EngKan. It will throw load errors in the console for all other forms. Instance=c (is not up-to-date but) can be loaded into PNC_Visit_EngKan
  8. probably use dristhi.css as-is, but
  9. create your own js build system that includes the enketo and androidcontext objects and their dependencies (enketo-dristhi-combined.min.js includes require.js itself so you don't want to use that)

Related Projects