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

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellrj committed Feb 27, 2013
1 parent 5a1722c commit a66e487
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions README.md
Expand Up @@ -168,33 +168,26 @@ You can then run the integration tests using `test/integration.sh` or

## Running your own private repository or mirror
1. Install couchdb

Mac OS X:
#### Mac OS X:
1. Install [Homebrew](http://mxcl.github.com/homebrew/).
2.
```
brew install couchdb
```

Ubuntu:
#### Ubuntu:
```
apt-get install couchdb
```

2. Configure your database

To create a mirror:
#### 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"
```

To create an empty, private repository:
#### To create an empty, private repository:
```
curl -X PUT http://127.0.0.1:5984/repository
```

3. Edit your ```.jamrc``` file to use your new repository:

```
exports.repositories = [
{
Expand All @@ -208,9 +201,8 @@ exports.repositories = [
### Adding search

1. [Install couchdb-lucene](https://github.com/rnewson/couchdb-lucene#build-and-run-couchdb-lucene)

2. Edit your ```.jamrc``` file to allow searching on your repository:

2. Restart couchdb.
3. Edit your ```.jamrc``` file to allow searching on your repository:
```
exports.repositories = [
"http://localhost:5984/repository",
Expand Down

0 comments on commit a66e487

Please sign in to comment.