
Yeah I know, some of the nerdy stuff has to get out there. Anway ... Before my return to blogging (haven't done so since my teenage years) I had to take some decisions as to how I want to structure this project and derive a tech stack that gets the job done. This rather unassuming issue is however not as simple to resolve as one might think, especially when you have a deep-rooted interest in DevOPs and some prior blogging experience. So join me in an effort to lay out my thoughts on how this website is structured under the hood.
Practical considerations
Let's face it. This was always gonna be a travel blog with some quirky emoji riddled subpages, so the intent was always to keep it simple, avoid resource intensive technologies while still providing somewhat of a nice experience for the reader. So basically I was faced with two options ... DIY it or go with a Content Management System.
Node / Next.js, Typescript, TailwindCSS and PayloadCMS
In the end I settled for somewhat of a hybrid approach and chose to DIY it, but with a catch. I'm somewhat familiar with Typescript so Node/Next.js was a logical choice here. For actually managing the content, I looked into a simple markdown structure, as this seemed the easiest, yet not most convenient way, of getting it done. This however meant, that I would have to have access to a laptop which does not necessarily fit my travel style. So I needed to look into a dynamic backend and after doing some research, I stumbled upon PayloadCMS which ticked all the boxes -> It is lightweight, easy to install, and is under quite some active development. It comes with a WYSIWYG editor, user management, media upload and a straightforward admin interface.
Wait this looks somewhat like Notion, right?
Yes indeed. The design is heavily influenced by Notion's standard template for Blogs. I tuned TailwindCSS to match this very design, with some minor adjustments. There is something about a clean look and I gotta give it to Notion, they do deliver on that. It is a familiar, non-distracting design putting my content first. Also shout out to Tailwind ... This makes it super easy to style the website and honestly took quite some hours of trial and error efforts away.
Let's talk database
Yet again, simplicity first. I am not at all a database guy. I do have a general understanding of SQL but never dug deeper ... If anything, I do query data in my job but that's just that. So SQLite was a logical choice here. This gives me one easily easily backed-up file that holds all the necessary data. Also there is a ton of references and tutorials out there to get started. If you are familiar with PostgreSQL/MariaDB this might also be worth looking into. I just could not bring myself to go down this rabbit hole ...
The problem with comments
This had me fork over some money for an agentic coding subscription lol. In order to allow for comments you need to secure it down with somewhat of a moderation option and implement an account requirement for commenters. Otherwise you will be plagued with spam comments by bots, hijacking your website. I have no idea as to how to implement this, so I handed this off to Claude, which got the job done in approx. 40mins after some well considered prompts. Comments are now pending prior approval before they are displayed publicly on the website and a username/password is required to post. There is no user account recovery.
Homepage / MapBox GL
For the landing page I went with a polarsteps inspired Hero Section of a Globe. This was done with mapbox.gl-js. Pretty easy to set up in conjunction with PayloadCMS backend option. Here is where I will add my stops later on and the map will draw out the individual stops.
Hosting, Deployment and stack components
I went with Hetzner, my go-to place for everything VPS related. I do host a bunch of stuff there already, so this was a no-brainer. Specifically I went with a CX33 Debian Trixie instance, with 4 core CPU, 8 GB of RAM and 80GB SSD. Plenty of headroom to grow this project. Cloudflare acts as a CDN and obscures the real server IP. I went with Nginx as my reverse proxy and did some security hardening with fail2ban, especially the backend and the comment function, as these get hammered with malicious requests.
Comments
Log in or sign up above to join the conversation.
No comments yet — be the first to share your thoughts!