dunxd / intity-epubjs-reader

Fork of mikespub version of Epub.js Reader with zipfs.php

Home Page:https://github-org.mikespub.net/intity-epubjs-reader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Epub.js Reader

UI

About this Fork

This fork is meant for a web-based epub reader, where the initial bookPath is set via template variable in dist/template.html, e.g. with PHP Twig or Python Jinja2, and the epub content is served from the original .epub file via a PHP or Python script like src/zipfs.php, e.g. with bookPath = http://localhost:8000/zipfs.php/{bookId}/

The dist/ files are available as:

About the Reader

Epub.js library.

Getting Started

Open up epubjs-reader in a browser.

You can change the ePub it opens by passing a link to bookPath in the url:

?bookPath=https://s3.amazonaws.com/epubjs/books/alice.epub

Running Locally

Install node.js

Then install the project dependences with npm

npm install

You can run the reader locally with the command

npm run serve

Builds are concatenated and minified using webpack

To generate a new build run

npm run build

About

Fork of mikespub version of Epub.js Reader with zipfs.php

https://github-org.mikespub.net/intity-epubjs-reader/

License:MIT License


Languages

Language:JavaScript 97.0%Language:PHP 3.0%