A book-ranking web app that uses pairwise comparison instead of traditional rating scales. Rather than assigning stars or numbers, you rank books by choosing between pairs — the way you actually think about preferences.
- Categorize a book as Beloved, Tolerated, or Disliked
- Compare it against your existing books in that category through a series of A/B choices
- Rank is determined automatically via binary search — each comparison halves the remaining candidates until the exact position is found
Ratings are computed from position within each sentiment range:
- Beloved: 7.5 – 10.0
- Tolerated: 4.5 – 7.0
- Disliked: 1.0 – 4.0
Books can be reranked at any time through the same pairwise process.
- Backend: Flask, SQLAlchemy, Flask-Login, Flask-Migrate
- Frontend: Jinja2 templates, Tailwind CSS, jQuery
- API: Google Books (search and book metadata)
- Database: SQLite (development), PostgreSQL (production)
- Deployment: Heroku with Gunicorn
git clone <repo-url>
cd literatus-web
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtCreate a .env file:
DATABASE_URL=sqlite:///literatus.db
SECRET_KEY=<generate-with: python -c "import secrets; print(secrets.token_hex(32))">
Initialize the database and run:
flask db upgrade
python app.pyThe app will be available at http://localhost:5000.