API for the Detroit Neighborhood Survey Builder project
JavaScript
Pull request Compare This branch is 840 commits behind LocalData:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
formbot @ 24a34a4
maintenance
static
test
uploaded_files
.gitignore
.gitmodules
.slugignore
Makefile
Procfile
README.md
collectors.js
form_constructor.json
forms.js
herokuconfig.sh.sample
package.json
parcels.js
requirements.txt
responses.js
scans.js
settings-test.js
settings.js
survey_constructor.json
surveys.js
testclient.js
util.js
web.js

README.md

SURVEY API

To install dependencies

$ npm install

To set environment variables:

$ source ./sentenv_local.sh

Run with

$ node web.js

To test the API, use testclient.js:

$ node testclient.js seedforms
$ node testclient.js getform FORMID

See the testclient.js code for more.

We're also experimenting with using mocha for tests:

$ make test