Skip to content

About

View Common Cartridges in the browser

Resources

Stars

95 stars

Watchers

14 watching

Forks

Repository files navigation

Common Cartridge Viewer

View Common Cartridges in the browser. Methods:

  • Load a CORS-enabled remote .imscc or .zip cartridge
  • Load a CORS-enabled exracted cartridge by pointing to its imsmanifest.xml
  • Drop and drop a cartridge into the viewer

Demo

https://common-cartridge-viewer.netlify.com

Quick start

git clone https://github.com/instructure/common-cartridge-viewer.git
cd common-cartridge-viewer
export NODE_OPTIONS=--openssl-legacy-provider
npm ci
npm run build # populates locale data
npm start

Quick start with docker compose

docker compose build && docker compose up -d

Inst-CLI set up

Copy the inst-cli/docker-compose/docker-compose.local.dev.yml to the top level Add an .env file to the repository that has a COMPOSE_FILE variable that points to docker-compose.local.dev.yml

Usage examples

Load an extracted cartridge

<iframe
  sandbox="allow-scripts allow-same-origin"
  src="https://common-cartridge-viewer.netlify.com/?manifest=https://common-cartridge-viewer.netlify.com/test-cartridges/course-1/imsmanifest.xml"
></iframe>

Load a compressed cartridge

<iframe
  sandbox="allow-scripts allow-same-origin"
  src="https://common-cartridge-viewer.netlify.com/?cartridge=https://s3.amazonaws.com/public-imscc/facc0607309246638c298c6a1b01abcf.imscc"
></iframe>

About

View Common Cartridges in the browser

Resources

Stars

95 stars

Watchers

14 watching

Forks

Releases

Packages

Used by

Contributors

Languages