Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MITLibraries/tryiiif
IIIF demo service
https://github.com/MITLibraries/tryiiif
Last synced: 5 days ago
JSON representation
IIIF demo service
- Host: GitHub
- URL: https://github.com/MITLibraries/tryiiif
- Owner: MITLibraries
- License: other
- Archived: true
- Created: 2016-05-20T15:21:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T19:25:54.000Z (about 7 years ago)
- Last Synced: 2024-08-01T12:27:56.911Z (3 months ago)
- Language: HTML
- Homepage: http://tryiiif.herokuapp.com
- Size: 2.99 MB
- Stars: 5
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-starred - MITLibraries/tryiiif - IIIF demo service (others)
README
.. image:: https://travis-ci.org/MITLibraries/tryiiif.svg?branch=master
:target: https://travis-ci.org/MITLibraries/tryiiif
:alt: Build Status
.. image:: https://www.versioneye.com/user/projects/575b06935758a9000de9a25e/badge.svg?style=flat
:target: https://www.versioneye.com/user/projects/575b06935758a9000de9a25e
:alt: Dependency Status
.. image:: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg
:target: https://raw.githubusercontent.com/MITLibraries/tryiiif/master/LICENSE.txt
:alt: Apache 2 licensedTryIIIF
=======http://tryiiif.herokuapp.com
Develop
-------After cloning the repo, use pip to install dependencies into a virtualenv::
(tryiiif)$ pip install -r requirements.txt
Create a ``.env`` at the root of the repo with a few settings:
- ``REDISTOGO_URL``: Redis connection URL, for example ``redis://localhost:6379``
- ``IIIF_SERVICE_URL``: URL to the IIIF service. This should be the full URL, for example: ``http://example.com/iiif/2``
- ``ROLLBAR_TOKEN``: Optional https://rollbar.com token for exception logging
- ``FLASK_ENV``: Optional string to identify where flask is running, for example ``production``
- ``SECRET_KEY``: Optional string to set a session secret key. This should be set in production environments. Information on how to generate and what this does here: http://flask.pocoo.org/docs/0.11/quickstart/#sessionsTo run the app, you can use something like `honcho `_ from the project root::
(tryiiiif)$ honcho start
Running Tests
-------------Use ``tox`` to run the tests. The test suite requires a running instance of redis. By default, it will look for this instance at ``redis://localhost:6379``. If it is running at a different URL pass it as the ``REDISTOGO_URL`` env variable to ``tox``. For example::
$ REDISTOGO_URL='redis://localhost:9999' tox