XBlog Phase 01 - The Feed Reader
Published -So I'm still alive. I've just been working on XBlog to a greater degree than I'd expected. I had got the basic reader working and thought I could move on to the Blog Editor. Then the more I used the Feed Reader the more things I wasn't happy with, and had to spend a few weeks rewriting it. Which turned into a few months. But I finally feel like I've got it to the point of minimum Viable Product.
The thing is because this is the first big-ish part of the system there was a few back-end things I needed to build in to make things easier for me later. For instance there is now a scheduled tasks system that feeds into a job tracking system. What means is I have a background worker that starts every hour and fetches a batch of feeds from the internet and puts them into a database. While its working I can see its progress from the dashboard.
Because some people have RSS feeds but really don't make them very well. I have had to add a feed editor so I can modify the Title and Description of some of the feeds. This means I can also mark items on the feed as read or all of them if there are too many for me to get through. I can update the site or the Feed URL and tag a feed as a favourite so it appears before other feeds.
I added OPML Import and Export, though that was just so I could get the feeds I follow into the Database to start with. Normally I'd just use the Add feed page, but I wasn't going to sit there and add all 350 of them to get started. Because 350 feeds takes awhile to process I made it so it too uses the Job system so I don't need to just sit there and wait for the server to finish.
I also had to add parsers for RSS, Atom, JSON, and ActivityPub not to mention I sanitise the content HTML before I display it in the browser. Did I mention just how bad you people are at creating your feeds? "Blog" is not a suitable title for your feed. The description node should not have HTML mark up in it. Yes you really should include a publish date on every feed item. But for the love of imaginary overlord learn how to format dates. It really does matter that the 13th of June 2023 was not a Monday and that the 29th of February 2026 was actually called March 1st. And another thing, XML will fail if the first character of the file isn't a <. Spaces and newlines will make "computer says no".
On top of getting the code written I had to learn how to make a Docker container, and deploy it to the Raspberry Pi 2 that is hosting this abomination.
Complications
- The Pi2 is arm/v7, my Development system is AMDx64 it needs to be cross compiled.
- Running on a local LAN means I need to run my own DNS so I can use the domain
http://xblog.home.lan/ - NiginX Proxy Manager for name resolution on the server.
- The Raspberry Pi 2 is very slow, but I knew that.
- I may have been a little optimistic using EF Core with SQLite, I may need to upgrade to PostgreSQL at some point in the future.
Still I'm making progress, and I might have to start adding new things I want to a wish list or I'll never get to the other reason I'm building this thing, the actual Blogging software.
Well I'm off to think deep thoughts about how the file management system is going to look and work.
L8rs...
