Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
API for the Detroit Neighborhood Survey Builder project
JavaScript

This branch is 920 commits behind LocalData:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
requirements.txt
responses.js
scans.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
Something went wrong with that request. Please try again.