Giter VIP home page Giter VIP logo

enketo-dristhi's Introduction

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. or access manually with query parameters like this e.g.: http://localhost:8080/build/template.html?formName=EC_Registration_EngKan&instanceId=a&debug=true
  8. 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
  9. probably use dristhi.css as-is, but
  10. 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)

WATCH OUT WHEN UPGRADING!

  • although the built js file is included you'd want to ignore this and create your own build without the js mocks
  • requires re-doing XSLT Transformation if XSL sheets changed (assume that they changed)
  • please thoroughly check the styling of some common forms and compare with the old forms (pay particular attention to repeats, font sizes, colors). I expect there may be some styling issuess I may have overlooked or that I considered to be improvements (due to upgrade to bootstrap3) but you may disagree.
  • see outstanding issues

###Related Projects

enketo-dristhi's People

Contributors

martijnr avatar peterp avatar kirang20 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.