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
- enketo-core - enketo form engine used inside this repo
- enketo-json - enketo two-way XML instance to JSON convertor used this repo
- XPathJS_javarosa - used inside this repo
- enketo-xslt - the XSLT sheets used to transform OpenRosa XForms into Enketo HTML forms
- enketo-xslt-transformer-php - a minimalistic example in PHP of an XSLT transformer
- [enketo-xslt-transformer-node] - To follow
- file-manager
- openrosa-forms - bunch of test forms, for development
- enketo-api-docs - enketo webform API documentation