-
More details are available here: https://github.com/readium/readium-js-viewer/blob/master/README.md
-
Requirements:
- Node 4 or better
- NPM 3 or better
- Can also use Yarn
-
Readium is built from many git submodules
- readium-js-viewer
- readium-js
- readium-shared-js
- readium-cfi-js
- readium-shared-js
- readium-js
- readium-js-viewer
- To fetch everything you start off with a recursive clone command:
git clone --recursive -b develop https://github.com/readium/readium-js-viewer.git
- Update the submodules
cd readium-js-viewer
git submodule update --init --recursive
- Sometimes the submodule references get slightly out of sync so to ensure you are at the latest develop branch in all submodules you can run this:
git checkout develop && git submodule foreach --recursive "git checkout develop"
- Run
npm run prepare:all
oryarn run prepare:yarn:all
- This will run some preparation scripts, may take a few mins
- Build once so the plugins get registered
npm run build
- Launch the dev server which will open your browser with the dev Readium instance
npm run http
- Or open this link in your preferred browser instead:
- Launch a book from the library view, for example the first book
- You can now use Readium and the Hypothesis sidebar should appear. It's loaded by default on
develop
now.
- You can now use Readium and the Hypothesis sidebar should appear. It's loaded by default on
- Run the deployment build script
npm run dist
- Deploy the contents of
./dist/cloud-reader
along with./epub_content
as a sub-directory to your web server.