Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

indent readme for formatting

  • Loading branch information...
commit b84e7b6f15443722c5eab08e4c8521ecae83b25f 1 parent d3afc16
@maxogden maxogden authored
Showing with 21 additions and 21 deletions.
  1. +21 −21 README.md
View
42 README.md
@@ -18,24 +18,24 @@ For more details check out the [wiki](https://github.com/open211/redirectory/wik
Installation
------------
-open211 uses a utility written in node.js (node.couchapp.org) to push code from your computer to HTTP land. it doesn't require node.js on the server, just couchdb + elasticsearch
-
- 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 these two couches on your couch:
- http://max.ic.ht/social_services
- http://max.ic.ht/redirectory
- npm install -g couchapp
- then do:
- couchapp push social_services.js yourcouch/social_services
- couchapp push app.js yourcouch/redirectory
-
- then visit yourcouch/redirectory/_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)
+open211 uses a utility written in node.js (node.couchapp.org) to push code from your computer to HTTP land. it doesn't require node.js on the server, just couchdb + elasticsearch (these can be on different servers from each other)
+
+ 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 these two couches on your couch:
+ http://max.ic.ht/social_services
+ http://max.ic.ht/redirectory
+ npm install -g couchapp
+ then do:
+ couchapp push social_services.js yourcouch/social_services
+ couchapp push app.js yourcouch/redirectory
+
+ then visit yourcouch/redirectory/_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)
Please sign in to comment.
Something went wrong with that request. Please try again.