Posts
Micro-frontend - Modernization using iframe based runtime integration
I had to maintain and enhance a product that was a static web app based on Preact and Yarn with a lot of custom code and abstractions which made the code difficult to understand and maintain, further compounded by the lack of documentation and institutional knowledge. The task given to me was to come up with a strategy for modernizing the product so that new features can be delivered faster using a more recent technology stack. The current code was in a monorepo with a lot of coupling between …
Blogging using Hugo
I recently started using Hugo, a fast and flexible static site generator, to publish the blog you're reading. I've captured some useful commands in this post to serve as a quick reference for myself and others getting started with Hugo. On Linux, enter the command below to install Hugo. ```bash sudo snap install hugo ``` Create the blog and initialize it as a git repository using the commands below. I use git to version control the changes to my blog and upload it to GitHub to back it up. Git …
Automate TLS Certificate Renewal for nginx with Certbot
I run nginx in a Docker container on a cloud server to serve my web applications. Using Certbot, I issued a TLS certificate from Let's Encrypt for my domain. Since these certificates expire after 90 days, I set up automatic renewal with Certbot — here's how. - **nginx** - A high performance web server software. - **TLS** - Transport Layer Security is a cryptographic protocol for secure communication over the internet. - **TLS certificate** - Digital file that proves a website's identity to TLS. …