Feeds
Now you can subscribe to the Minit Feed using any RSS feed reader by redirecting it to the address
https://minit.barelyhuman.xyz/feed.rss
Now you can subscribe to the Minit Feed using any RSS feed reader by redirecting it to the address
https://minit.barelyhuman.xyz/feed.rss
Well,
I decided to rewrite this in golang for 2 primary reasons.
The initial version was in Next.js which worked fine and was built rather quickly because of
how used to I'm with next.js apps.
Though, I was trying to hack into the behaviour and use the same file for both GET
and POST
requests and that didn't really work in my favour with the numerous CSRF token issues that were reported. Plus the app's build time was a little slow for something that was about 4 pages.
I've used golang to build quite a few web "apps", and I've used the embed
feature quite a bit for injecting/storing files and templates in the final binary.
So for something like this, I thought it'd be easier to deliver the server, though, I did mess it up.
The initial version with next.js was build with a docker-compose setup and I lost the .env file that
I used for production database, which was also a part of docker compose. I forgot to back it up when I was formatting my system.
Luckily minit has a single login->register flow so user's wouldn't really realise since I made the 2nd deploy after
the existing thoughts had vanished.
The second time I fucked it up by forgetting that I had Caddy running on the server and created the app with dokku without checking the remote server (also why you should avoid having so many ways to deploy and so many remote compute instances....), anyway my experiments bit me in the ass and I ended up dropping goblin and having goblin up was a lot more important.
But then, I pruned all the docker volumes... aka the database assigned with the older minit deploy with dokku
was now gone. poof.
Finally just simplified the entire deploy with simple traditional style setups and bash scripts for deploying and I'm done for the day.
For the people who do read these things,
This isn't an attempt to compete with whatever social platforms it might seem
like I'm replicating but instead a platform to post random stuff which
wouldn't be considered as permanent.
There's enough platforms for posting permanent stuff, I use my blog for that,
and right now there's a lot of un-needed stuff on my blog which can now be
posted here.
There used to be a ephemeral micro blogging platform a few years ago, I couldn't
find it so I just rebuilt one.
You can read about that here