Lightweight comics reader (web version)

Andrew Dolgov 3185cb8e21 remove reduntant code from thumbnails 10 months ago
cache 7b10d9d518 initial 10 months ago
db 7b10d9d518 initial 10 months ago
img 7bda31a847 remove item padding 10 months ago
lib 8879df5cfb remove php-based reader; finalize merge of electron code 10 months ago
sessions 7b10d9d518 initial 10 months ago
.gitignore 85aa917f07 upd .gitignore 10 months ago
README.md 706c83a066 upd readme 10 months ago
backend.php fe2411d56e use webp for downsampled pages 10 months ago
common.php 3185cb8e21 remove reduntant code from thumbnails 10 months ago
config.php-dist 7b10d9d518 initial 10 months ago
db.php 372dae85df store metadata in the DB 10 months ago
index.php 4fbf51a612 fix missing favicon 10 months ago
login.php 4fbf51a612 fix missing favicon 10 months ago
logout.php 7b10d9d518 initial 10 months ago
manifest.json 6e39919c67 upd icons 10 months ago
reader.css 8879df5cfb remove php-based reader; finalize merge of electron code 10 months ago
reader.css.map 8879df5cfb remove php-based reader; finalize merge of electron code 10 months ago
reader.html 2f334589e8 add fs/zoom 10 months ago
reader.js d49b5e0afd downsample: respect devicepixelratio 10 months ago
reader.less 8879df5cfb remove php-based reader; finalize merge of electron code 10 months ago
schema.sql 372dae85df store metadata in the DB 10 months ago
sessions.php 7b10d9d518 initial 10 months ago
useradm.php e8a55993fe add reader skeleton 10 months ago

README.md

Pow! Comics Reader (web)

Responsive minimalistic CBZ reader with support for network sync.

See also: https://git.tt-rss.org/fox/tt-comics-web/wiki

Installation

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 /comics/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

Additionally, cache folder should also be writable by your httpd.

  1. Copy config.php-dist to config.php and edit paths, etc.

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

Requirements

  • GD to make comic cover thumbnails
  • PDO::sqlite
  • Comic archives in standard CBZ format

License

GNU GPL version 3.