My own blog engine
2024-12-16
A new blog engine
I think I am ready to release my very first blogging engine. There will be a few more tests but so far it looks really cool.
Why?
So, I wanted to try to create something really minimalistic. Something that I can easily deploy again and again without worrying too much about backups, etc. This engine backs up itself. If I do not like my current host anymore, I simply deploy everyhings via Git to another server. The whole migration will take a maximum of 10 minutes. Basically, the time it takes to recreate the container on my new server.
You mentioned container. How does it work?
I am running a three container setup:
- Oracle Database 23ai free
- ORDS Developer
- Python (Flask)
The compose file and the application files are all located on Github. It is really just a matter of cloning the repository and running docker compose.
And the content?
All content is written in Markdown. I am using a small frontmatter definition. My app logic will convert the markdown file to JSON and store it via Mongo API in the Oracle Database (in a JSON collection table). At the same time, I create a backup of the markdown.
In order to display the content, I pull the data via Mongo API from the Oracle Database and convert the JSON document to HTML. The design is done completely in CSS.
That's it. Nothing fancy. Very minimalistic and super flexible in regard to deployment location. I could literally run my website from my laptop at any time.