Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
resources for parents of youngsters in alameda county (east bay, oakland, etc)
JavaScript Ruby
tree: 85a79b08e1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attachments
tropo
.gitignore
README.md
couchapp.js
index.js
package.json
social_services.js
users.js
zipcodes.js

README.md

EarlyAlameda.com

Early Childhood Resources for Alameda County

This is an instance of the Open211 platform.

Installation

install couchdb 1.1 or above, node.js and npm
make sure "secure_rewrites" is set to false and "allow_jsonp" is set to true in your couch config
then replicate this couch to your couch:
http://max.ic.ht/earlyalameda
npm install -g couchapp
then do:
couchapp push app.js yourcouch/earlyalameda

then visit yourcouch/earlyalameda/_design/app/_rewrite

for full text search we use elasticsearch. you have to run it somewhere and use the couchdb "river" plugin to sync elasticsearch with couchdb

to set up the full text search proxy we utilize couchdb 1.1's built in proxy.
add the following tuple to httpd_global_handlers in the couch config:
_search: {couch_httpd_proxy, handle_proxy_req, <<"YOUR_ELASTICSEARCH_URL_HERE">>}

an example elasticsearch url is http://www.example.com:9200 (default port for ES is 9200)
Something went wrong with that request. Please try again.