my-simple-odk
This is a simple roll-your-own server for receiving form submissions from ODK Collect and storing them in a Github repo, a Github Gist, or a Firebase database (Firebase is still experimental and reading a blank forms does not work).
This is currently experimental, needs more docs, and will possibly break
Installation
-
Clone this repo
git clone https://github.com/digidem/simple-odk-custom.git
-
npm install
- You must set the environment variable
FORM_STORE
to one of:github
- you also need to setGITHUB_USER
andGITHUB_REPO
gist
- also setGIST_ID
to the id of the gist you want to submit tofirebase
- also setFIREBASE_APP
to the firebase app name
e.g.
bash export FORM_STORE=github export GITHUB_USER=myrepoowner export GITHUB_REPO=mygithubreponame
npm start
That should be it, check by visiting http://localhost:8080/ and you should see OK
Deploy on Heroku
Just click the button below and fill in the required environment variables (see above)
======================
See it on GitHub
Return to Code