Go to file
2020-07-17 01:39:00 -03:00
CalibreWebCompanion easyColab, removeSpice 2020-07-17 01:39:00 -03:00
loadtesting easyColab, removeSpice 2020-07-17 01:39:00 -03:00
.gitignore easyColab, removeSpice 2020-07-17 01:39:00 -03:00
README.md easyColab, removeSpice 2020-07-17 01:39:00 -03:00
requirements.txt easyColab, removeSpice 2020-07-17 01:39:00 -03:00

requirements

Django 3.0

how to use:

EDIT ./CalibreWebCompanion/settings.json.bak
Remove the .bak from db.sqlite3.bak and settings.json.bak
./CalibreWebCompanion
run ./manage.py runserver

Profiling

To do profiling, you have to create some dummy users
Unbakify a file ./loadtesting/dummyusers.json.bak and fill in the credentials for the dummy users

While django is running, open another shell and cd to ./loadtesting and run ./bench.py To have a more interactive session, comment out

run-time = 2m
headless = true

in locust.conf, and then run ./bench.py You can then go to http://localhost:8089/ to see live graphs, tweak the number of users and more.

this is in development mode. don't actually use it or release it like this. The debug info it shows is spicy.

Features

  • Books
  • navbar with tags, series, authors, etc
  • Search
  • authentication
  • Cache
  • Profiling with logging

TODO

  • cache with vary headers

  • localisation

  • Beautifying template

  • Setup email functionality

  • deploy