ppseafield

Building a Self-Hosted Blog

Experimenting with Podman, Forgejo, Woodpecker CI, and Nuxt Content.

Eager To Try New Things

I decided I wanted to see how self hosting a nuxt project + CI/CD using podman would go. With Nuxt Content, a simple blog seemed easy enough. Since it can build to be entirely pre-rendered, including search, it could even end up being placed on a CDN. This could all become a go-to for my personal projects.

Podman Compose + Forgejo

Standing up a forgejo instance locally was easy, just use the container they provide (codeberg.org/forgejo/forgejo:13). Admin setup was straightforward, and I created a single user for myself.

Nuxt Content Blog

I had only used Nuxt Content briefly before, just to check it out. I set up a very barebones Nuxt app with Nuxt UI, which comes with many very helpful components set up for Nuxt Content, like ContentRenderer and ContentSearch. Particularly nice is that the entire search functionality can be set up to be rendered statically: Nuxt Content will take its sqlite database and build it for client-side querying.

Once I had a single blog post, I set up the home page to list all of the posts. We can worry about pagination later when we have more posts.

Ran out of time this evening, so I'll do some more tomorrow.