Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathewjordan/mirador-playground
Basic React.js app for local IIIF and viewer play.
https://github.com/mathewjordan/mirador-playground
Last synced: 13 days ago
JSON representation
Basic React.js app for local IIIF and viewer play.
- Host: GitHub
- URL: https://github.com/mathewjordan/mirador-playground
- Owner: mathewjordan
- Created: 2021-02-25T01:35:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T16:56:17.000Z (about 3 years ago)
- Last Synced: 2024-10-12T08:48:11.512Z (3 months ago)
- Language: JavaScript
- Size: 59.9 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mirador Playground
This application is a small React.js codebase that serves a contained environment for testing IIIF via a Mirador 3.1.1 viewer. To run, you'll just need current versions `npm` (Node.js) and `yarn`.
## Playing
- `yarn && yarn start`
- open [http://localhost:8080](http://localhost:8080/) in your browser.
- the initially loaded manifest will render to MiradorIn your IDE, you can modify manifests at - Modify manifests at `./assets/iiif/manifest` and items at `./assets/item`. Content within `./assets` will be served to the root of the local development URL of http://localhost:8080.
To change the manifest being loaded by the Mirador viewer, update the state variable in `./src/App.js`
```
this.state = {
manifest: 'http://localhost:8080/iiif/manifest/nezperce.json',
};
```## Requirements
- [Node.js](https://nodejs.org/en/)
- [Yarn](https://classic.yarnpkg.com/en/docs/install/#mac-stable)To run the React.js compile process for this application, you'll need a current version of the Yarn package manager.
If you already have Node.js, you can install yarn quickly:
```
npm install --global yarn
```## Installation
- `yarn`
Running `yarn` will install all dependencies, including:
- React 16
- Webpack 5
- Babel 7
- Mirador 3