Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Commit

Permalink
Fix searching. Need design documents.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellrj committed Feb 27, 2013
1 parent 5f05f2c commit 4fb6187
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Expand Up @@ -185,10 +185,24 @@ apt-get install couchdb
```
2. Configure your database

```
curl -X POST http://127.0.0.1:5984/_replicate -d '{
"source":"http://jamjs.org/repository",
"target":"http://localhost:5984/repository",
"continuous":true,
"doc_ids":["_design/jam-packages"]
}' -H "Content-Type: application/json"
```

#### To create a mirror:

```
curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"http://jamjs.org/repository", "target":"repository", "continuous":true, "create_target":true}' -H "Content-Type: application/json"
curl -X POST http://127.0.0.1:5984/_replicate -d '{
"source":"http://jamjs.org/repository",
"target":"repository",
"continuous":true,
"create_target":true
}' -H "Content-Type: application/json"
```

#### To create an empty, private repository:
Expand Down Expand Up @@ -217,7 +231,10 @@ exports.repositories = [

```
exports.repositories = [
"http://localhost:5984/repository",
{
url: "http://localhost:5984/repository",
search: "http://localhost:5984/_fti/local/repository/_design/jam-packages/packages/"
},
"http://jamjs.org/repository"
];
```
Expand Down

0 comments on commit 4fb6187

Please sign in to comment.