arlindohall / home-library Goto Github PK
View Code? Open in Web Editor NEWRails app for managing personal books in a home library collection
Rails app for managing personal books in a home library collection
I want to be able to click a button and get the full data for myself as a fast compressed download, and with one button put that file back into the db. That's because this is in digital ocean, if I accidentally brick something I want to not have to manually scan my books again.
I think this might be possible as a simple API but also I know rails has something like file downloads.
The controller could create a downloadable file and save the name to the user table, and then download when ready.
Be able to quickly look up books when an id is scanned. The lookup already happens, this will just make it fast.
Just create a migration for a new index.
I want to deploy this to digital ocean and scan my books there, but I'd like to be able to not have random input data or read about my books.
All pages except login should return the login page unless there is an authorized user. Also APIs should verify the session.
I want to be able to get as close as a one click deployment to digital ocean as possible. As part of that, I'd like to be able to run a script once the dns is set up and just enable ssl.
I can never remember the cert bot commands to enable ssl, so I think if I just add a script that runs once Nginx is set up that enables ssl using a url validation that would be perfect.
Also remove server setup for this and for the home server from dot files and move it to its own project
Part of the explore feature is that you can go to the page for any given genre and see all the books there.
Update the genre page (not sure if one exists or not) to fetch books by genre. That also means updating the books index api to take a genre parameter and filter it out. That would probably also be improved by adding an index by genre/id
or genre/scanned_id
.
This is the whole point of the project. I want to be able to click a button and the books are (already in order) grouped into shelf chunks that can be easily assigned to physical shelves. Maybe chunks are like a foot long and then you can just group those books together and put them on a shelf.
This seems sort of daunting but it'll be easier while the app is smaller before I add more features. And the app already behaves more like rails.
It should be made a lot easier using this css framework I just learned about Simple.css.
Getting started should be as easy as running one script, but also it would be nice if there were some instructions.
The readme should explain how to install dependencies and run the project as well as... anything else that goes in a readme? I actually don't have great ideas here.
The hamburger is already there, there just needs to be a state opened or closed and a menu that hides or is visible based on that. The menu just goes to the main pages (books index, profile, logout, scan)
This project should run easily with the server setup logic in my dotfiles repo. Part of that is making the whole thing run on docker with as few files mapped as possible. I already (I think) set it up to pull the secret key base as an env variable, but I think if I pass in the master key instead it can encrypt the secret key base... or maybe it's the other way around?
I remember googling about it but I lost the links and forgot what the plan was. The below section is old and I don't remember what it means.
Ultimately the purpose of this is so that the thing runs in docker and can be wrapped with a script and still get the needed secret keys to be consistent between deployments to the same server.
Remove the credentials file, pass in secret_key_base
as an environment variable, and remove master.key
if possible.
While doing this, add the docker-run.rb
script back and have the dot files repo that consumes it copy it to the current directory.
I'd like to be able to search by title, author, and description all at once, preferably with a fuzzy search. I think I remember SQLite supporting some kind of search.
Add whatever kind of index is needed to do full text search on SQLite.
Some books will not scan right and I still want to create a book for that id and have an author and title.
The data should be a form instead of just text, and the form lets you edit the scanned data.
The page should scale to a big frickin library. But also I think I've got like a thousand books and that might actually not be too slow. I should scan all mine in and see if it's slow, and add pagination later.
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.