barrucadu / bookdb Goto Github PK
View Code? Open in Web Editor NEWA database and web app to keep track of all my books
Home Page: https://bookdb.barrucadu.co.uk/search
A database and web app to keep track of all my books
Home Page: https://bookdb.barrucadu.co.uk/search
I don't really have any intention on doing any further work on it, so I should migrate to a more updated framework. Something with digestive-functors
support would be nice, as then I can simplify all the form processing.
I just read a blog post about history tables, and it reminded me that I've wanted that sort of feature for a long time in bookdb. If there was a log of changes to the reading flag and location, the system would be much more flexible.
I've never got around to implementing it because I won't have any history before that point, which feels like a waste. But putting it off is just increasing the waste!
If a book already has a cover image and the description is updated without a new cover image provided, the old one will be lost (the file is still there, but the database entry doesn't reference it).
Solution 1: Don't overwrite the path to cover image if it's already set, and a new one isn't provided.
Solution 2: Don't store the path to cover image in the database, just use the ISBN (requires normalising file extension, which is currently the only reason it's in the db)
Solution 2 is probably better, although it would require hitting the filesystem to check if books have cover images. Maybe a combined approach is optimal, where the db has a "has cover" flag (which can be set once, and is then never unset), and normalised filenames.
Volume numbers are currently sorted lexicographically rather than numerically.
To work around non-numeric volume numbers (eg, "4a") sorting can attempt to split into a numeric prefix and a textual suffix.
When looking at some search results, or a filtered book list, the suggestion in the top-right corner should be drawn from books in the list.
I have timestamps going back to 2012 or so, it shouldn't be too hard to produce a few graphs and tables. Things which might be interesting:
Stylesheet :: Sitemap
and Javascript :: Sitemap
routes.Static :: String -> Sitemap
route, which renders as "/static/[string]"I've run this in my local docker using the python:3.8 image.
When I run the app, i get this page: The search server is unavailable. Try again in a minute or two.
I did pip install -y requirements-freeze.txt
basically everything that was in the Dockerfile.
This is after editing serve.py because the redirect breaks the site completely.
from : BASE_URI = os.getenv("BASE_URI", "http://bookdb.nyarlathotep")
to: BASE_URI = os.getenv("BASE_URI", "http://192.168.1.76:8888")
After that I gave up. I dont think this is a repeatable install inside or outside docker.
You also have a port variabl 9200 that is on localhost but not open or called to be open. so i opened that on my container.
I like the project idea... hopefully you can make it so that it works correctly.
I cant spend more time trying to get it to work :(
See translator for "The Foundation Pit": https://www.barrucadu.co.uk/bookdb/list
Authors get broken up into a list and individually hyperlinked, other fields don't.
Would be nice to have a view containing a list of books chosen to be read, with the ability to cross off books and see completion progress. Maybe even have deadlines.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.