bonukai / MediaTracker

Self hosted media tracker for movies, tv shows, video games, books and audiobooks
MIT License
572 stars 23 forks source link

MediaTracker 1.0 #569

Open bonukai opened 8 months ago

bonukai commented 8 months ago

Major rewrite of entire project, frontend and backend, not yet completed.

Fronted has been fully redesign, but the progress on this is just starting. I have mainly focused on the backend rewrite. I have used trpc for API routes and zod for type checking. This allows for easier development and reduces type errors.

I have optimized the database, now queries are much faster and simpler, but they still allow for complex filters and sorting. Updating metadata, especially for TV shows, have been reworked as well. When metadata has changed for a tv season, and it cannot be updated (because user have marked those episodes as seen), only this season update will be skipped, rest of metadata will be updated.

Breaking changes

Migration instructions

For those using SQLite (default) there are no extra steps, just update docker image.

If you are using a Postgres database, change environmental variable DATABASE_CLIENT from pg to PostgreSQL and use DATABASE_CONNECTION_STRING in form of postgres://user:password@host:port/database

New features:

Fixes

TODO:

bonukai commented 6 months ago
  • You use prettier for backend and ESlint for frontend, why not just one?

Initially I was using prettier for formatting and later I have added ESlint for linting, but it make sense to use ESlint for also for formatting. First I have to fix errors that ESlint is showing on the backend :)

  • Is dark mode on your todo list?

Yes, dark mode is on my TODO list, but not on the initial release

  • This PR is getting rather large, might I suggest introducing a 1.0 branch and merging changes into there?

I wanted to do that, but I couldn't crate a pull request to merge into this branch, but now I have tried again, and obviously a change needs to be made on this branch, not on main 🤦