enketo-dristhi
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:
- install node (and npm), grunt-cli, ruby, rubygems, and the sass gem (
gem install sass
).
- clone repo
- get (or update) submodules
git submodule update --init --recursive
- Use
grunt
to build.
- start webserver with
grunt server
.
- go to http://localhost:8080/build/index.html to see list of links to all Dristhi forms
- 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
- probably use dristhi.css as-is, but
- 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