This Haskell program extracts meta info and cover images, creates thumbnails of those and sends a JSON response to the client, which parses and displays it.
- Serve the
html
directory with your web server and enable CGI - Make
html
readable by the web server and makehtml/media/covers
writeable. There is a script for doing both of those things on Debian:
./scripts/set-permissions-debian.sh
- Compile the program and copy the binary to
html/app.cgi
./scripts/build-and-install.sh
There is no database, since any modifications should also be present in the epub files. Instead, a caching system is used.
- Rewrite frontend in React? Current code is a poor man's version
- Modernize FaaS technology?
- Docker: use https://hub.docker.com/r/fpco/stack-build
- Buttons for forcing reloads
- Button for clearing search field
- PDF support (tricky)