-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying the PeBL WebReader
-
If you haven't done so already, download the latest stable version of the PeBL WebReader from: https://github.com/peblproject/WebReader/releases/latest/download/PeBLReader.zip
-
Extract the contents of that zip to the root directory of your webserver (NGINX, APACHE, etc).
-
Edit the config file (scripts/config.js) and change the values for PeBLServicesURL and PeBLServicesWSURL to point to your PeBL Services Server. See Deploying PeBL Services for setting up a PeBL Services server.
-
At this point your PeBL WebReader should be accessible at the URL you have configured within your webserver.
-
Place the EPUB file and a separate image file which will be used as the cover image on the bookshelf, into the epub_content/bookshelf directory of the PeBL WebReader.
-
Edit the epub_library file (epub_content/epub_library.json) to include an entry for this eBook. For example, if you uploaded an EPUB with the filename my_ebook.epub and a cover image with the filename my_cover.png, the epub_library.json file would look like this:
[
{
"title": "My eBook",
"author": "My name",
"rootUrl": "bookshelf/my_ebook.epub",
"coverHref": "bookshelf/my_cover.png"
}
]