web EPUB reader using EPUB.js, Bootstrap, and Calibre.

Andrew Dolgov 520e31b162 auto-reload page initially to activate sw 1 day ago
css 6920124b40 remove unneeded <b> tags from reader title 3 months ago
db 05b286c2b5 add db/ 2 years ago
img 65ef787572 update icon 11 months ago
js 520e31b162 auto-reload page initially to activate sw 1 day ago
lib e6e5702a5c update epub.js to v0.3.73 1 month ago
sessions e12535e601 add .empty back 2 years ago
themes 23e976999a add missing sepia.css 3 months ago
.eslintrc.js 922d399dd0 add eslintrc 5 months ago
.gitignore 4d108431dd add some placeholder stuff for ttf files 3 months ago
COPYING 1acf84942d add COPYING 2 years ago
README.md 11bcabe3bf update README 3 days ago
backend.php 337bd2bdf5 add basic wiktionary support 5 months ago
config.php-dist fbe4290156 upd config dist 8 months ago
db.php dfee22901d * use PDO::sqlite 2 years ago
index.php 6c037531be use map + Promise.all instead of plain iteration while fetching cached urls 1 day ago
login.php 499e7ad0bd update launcher icons 11 months ago
logout.php dcffa74b03 force logout user when login from is rendered 1 year ago
manifest.json 65ef787572 update icon 11 months ago
offline.html 4f1c7a977b code/layout cleanup 8 months ago
read.html 1994ed155e add sepia theme 3 months ago
schema.sql 55f2b0090a add basic favorites via a horrible hack 2 years ago
sessions.php dcffa74b03 force logout user when login from is rendered 1 year ago
useradm.php 76760cffe0 update password if adding but user exists 1 year ago
worker.js e71b809160 disable skipWaiting on install (sometimes breaks initial reload) 1 day ago

README.md

The Epube

web EPUB reader using EPUB.js, Bootstrap, and Calibre.

https://git.tt-rss.org/fox/the-epube/wiki

Copyright (c) 2017 Andrew Dolgov (unless explicitly stated otherwise).

Requirements

  • HTTPS: required for service workers to work
  • PDO::sqlite
  • Calibre books directory and metadata.db

Installation

Always use latest Git code from master branch. Ignore the releases page, it doesn't mean anything.

git clone https://git.tt-rss.org/fox/the-epube.git the-epube

WARNING: since database folder is, by default, accessible for unauthenticated HTTP requests it is recommended to set SCRATCH_DB to a secure random value (i.e. db/long-random-string.db) or put it outside of scope accessible by your http server. Alternatively, you can simply block access to db:

location /the-epube/db {
   deny all;
}
  1. Initialize scratch.db

    sqlite3 db/scratch.db < schema.sql
  2. Ensure both scratch.db and its containing folder (i.e. db/) are writable by the application, normally this means chown-ing them as www-data or whatever user your httpd is running under.

    chown www-data db/ db/scratch.db
  3. Copy config.php-dist to config.php and edit path to Calibre, etc.

  4. Setup users via useradm.php (command line)

Upgrading

When upgrading from an older Git snapshot which used HTTP Authentication:

  1. Disable HTTP Authentication in httpd configuration
  2. Reopen browser to clear HTTP auth
  3. Add two new tables to scratch.db (epube_users & epube_sessions)
  4. Add users via useradm.php (use same names as http auth, all data will be kept)

Acknowledgements

Normal favicon from Silk icon pack - http://www.famfamfam.com/lab/icons/silk/

License

GNU GPL version 3.