Skip to content

Commit

Permalink
Merge pull request #86 from scientist-softserv/jeremyf-updating-docum…
Browse files Browse the repository at this point in the history
…entation

Adding documentation regarding development of gem
  • Loading branch information
jeremyf authored Jan 26, 2023
2 parents ace2a26 + c2f5d9a commit 7c58b39
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ A set of helpful documents to help you learn more and deploy IiifPrint can be fo

## Requirements

* [Ruby](https://rubyonrails.org/) >=2.4
* [Ruby](https://rubyonrails.org/) >=2.4
* [Rails](https://rubyonrails.org/) ~>5.0
* [Bundler](http://bundler.io/)
* [Hyrax](https://github.com/samvera/hyrax) v2.5-v2.9.4
Expand Down Expand Up @@ -87,7 +87,7 @@ IiifPrint easily integrates with your Hyrax 2.x applications.
* In `app/controllers/catalog_controller.rb`, the `config.search_builder_class` is set to a new `CustomSearchBuiler` to support newspapers search features.
* Additional facet fields for newspaper metadata are added to `app/controllers/catalog_controller.rb`.
* Newspaper resource types added to `config/authorities/resource_types.yml`.
* Includes IiifPrint::SetChildFlag module to the works' models.
* Includes IiifPrint::SetChildFlag module to the works' models.
* Includes IiifPrint::ChildIndexer module to the works' indexers.
* Includes IiifPrint::FileSetIndexer module to the file set's indexer.
* Adds custom_is_child_term to lib/rdf/ directory.
Expand Down Expand Up @@ -129,11 +129,23 @@ For more information on derivatives, see the [wiki](https://github.com/samvera-l

# Developing, Testing, and Contributing

Detailed information regarding development and testing environments setup and configuration can be found [here](https://github.com/samvera-labs/iiif_print/wiki/Installing,-Developing,-and-Testing)
We develop the IIIF Print gem using Docker and Docker Compose. You'll want to clone this repository and run the following commands:

A Vagrant VM is available for users and developers to quickly and easily deploy the latest IiifPrint codebase using Vagrant and VirtualBox. See [samvera-newspapers-vagrant](https://github.com/samvera-labs/samvera-newspapers-vagrant) for more.
```shell
$ docker compose build
$ docker compose up
$ docker compose exec web bash
```

Additionally, the [IiifPrint Demo Site](https://newspaperworks.digitalnewspapers.org/) is available for those interested in testing out IiifPrint as deployed in a vanilla Hyrax application. (**NOTE:** The demo site may not be running the latest release of IiifPrint.)
You'll now be inside the web container:

```shell
$ bundle exec rake
```

The above will build the test application (if it doesn't already exist). During the rebuild you might get a notice on a conflict for files. It will ask you to override. We recommend that you select the "accept all" option (e.g. Typing <kbd>a</kbd>).

To rebuild the test application, delete the `.internal_test_app` directory.

## Contributing

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ services:
- VIRTUAL_PORT=3000
- VIRTUAL_HOST=.hyku.test
command: tail -f /dev/null
##
## Similar to the above, except we will bundle and then tell the container
## to wait. You'll then need to bash into the web container to do much of
## anything.
# command: sh -l -c "bundle && echo \"Finished bundling now waiting...\" && tail -f /dev/null"
depends_on:
db:
condition: service_started
Expand Down

0 comments on commit 7c58b39

Please sign in to comment.