Devlog 12

You're viewing a Gemini article on the web

It's much better to view it on Gemini!

Lots of progress today (well, yesterday). Frontend work is progressing nicely.

Today's work

I refactored the frontend API client and fixed the token refresh flow in both the front- and back-end. It's almost certainly not production-ready, but at least now I can keep using the app for testing without authentication failing, which is nice.

Also, I now have a working search page!

A screenshot of the search page

This is still pretty basic, but it works as expected. It has functioning pagination and the data proxying works as expected. Data fetching from TMDB works perfectly. It feels pretty nice!

What's next?

Next, I'll implement the initial logic for rendering a film page. This should be fairly easy from a data point of view, but the design part will be annoying. As part of this I need to decide what data I require and how to cache it in line with TMDB's terms of use. I think the best approach is to immediately serve the content as fetched from TMDB and then store it in the background. If the same data is accessed again, it should be fetched from the database first, and then from TMDB as a fallback.

I also need to create a task to synchronize data that's over 6 months old. Maybe that should be configurable, I don't know. Something to think about.

Tell me what you think.