codeforamerica/survey-api — pull request #15 by prashtx (2012-08-10 04:01:52+00:00)
Title: Merge static web app servers with API server

**This is a breaking change**

The API URLs now starts with `/api`, so we can use `/mobile` for the mobile collection client and root (`/`) for the ringleader admin tool (survey builder, collection dashboard, etc.).

The tests should run more reliably now. Updated to express 3.0, which is at release candidate 2, so hopefully pretty stable. This will let us pull in the gzip feature, too.

This is a breaking change:

- We need to change the mobile collection tool to use the new API urls. The rest of the API communication should remain unchanged.
- We need to deploy the admin tool to S3, the same way we do with the mobile collection tool.

The knox module we use has a devDependencies bug. It specifies an invalid version of mocha. We don't need to test knox, though, just our own code. If you run `npm install` followed by `npm install --dev`, the dependencies should install fine, including mocha and should.

/cc @hampelm