How this site is built
Blogging is probably one of the most ancient traditions in the tech community. I decided to join the trend and started working on my own blogging site. I struggle a lot with making trivial decisions and choosing a technology to bring my blog to life was hard (not really, I was just being a nerd), due to the overwhelming amount of options out there.
The initial plan: from scratch in Rust
I initially thought building a website like this was easy enough that writing it from scratch (even spinning up a Markdown parser) in rust was a cool way to learn the language basics. Boy was I wrong.
Rust is on its own a beast of a language if you’re not very familiar with memory management and low level stuff. I initially planned to build the whole server. I planned to write the following list of things from scratch:
- A web (HTTP) server.
- A markdown parser.
I actually managed to get something going, which is basically an http server that can be configured off a GitHub URL (such as the one holding this repository), discovers the entire file tree on the given branch name and renders the markdown content.