Skip to content

Commit

Permalink
Merge sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Feb 19, 2018
1 parent a1dc32a commit 2dfcb33
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ cd pomegranate
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake pomegranate:development
```

To create an initial user account and exhibit, use the Spotlight rake tasks:
After setup, run Pomegranate locally with `rails s`.

```sh
rake spotlight:initialize
rake spotlight:exhibit
```
### Importing Data:

After setup, run Pomegranate locally with `rails s`.
1. Log in once via CAS
2. Run `rake pomegranate:site_admin`
3. Click "Create a New Collection"
4. Select a small collection and hit "Save" (Recommend `ABC Books`)
5. Wait for import (this will take a while since it's happening in foreground on dev)

## Auto-update from [Plum](https://github.com/pulibrary/plum)
### Auto-update from [Figgy](https://github.com/pulibrary/figgy)

Plum announces events to a durable RabbitMQ fanout exchange. In order to use them, do the
following:
Expand All @@ -36,28 +38,9 @@ following:
This will subscribe to the plum events and update the pomegranate records when they're
created, updated, or deleted.

## Development Setup

### Test
### Running Tests

```sh
bundle exec rake pomegranate:test
bundle exec rspec spec
```

### Development Server

#### Setting up server:

```sh
bundle exec rake pomegranate:development
bundle exec rails s
```

#### Importing Data:

1. Log in once via CAS
2. Run `rake pomegranate:site_admin`
3. Click "Create a New Collection"
4. Select a small collection and hit "Save" (Recommend `ABC Books`)
5. Wait for import (this will take a while since it's happening in foreground on dev)

0 comments on commit 2dfcb33

Please sign in to comment.