Getting Started with Terraform

Introduction to Terraform Terraform is an open-source Infrastructure-as-Code (IaC) tool for describing and provisioning cloud resources using declarative configuration files. It works with providers like AWS, Azure, and GCP, generating an execution plan, managing state, and applying changes predictably. Setting Up the AWS Provider Create a main.tf with your AWS provider configuration: provider "aws" { region = var.region profile = var.profile } Managing Configuration with Variables Variables let you reuse the same configuration across multiple environments without hard-coding values. Define them in a variables.tf file: ...

August 9, 2025

Building a REST API in Go with chi

I’ve tried with a handful of Go routers recently, but I keep circling back to chi. It gives me just the right amount of structure without the kitchen-sink feel of a full framework. In this post I’ll show you how I wired up a small “weekend project” API—complete with CRUD endpoints, sensible middleware, and a dash of testing—so you can follow along or borrow snippets for your own adventures. 1. Prerequisites Go ≥ 1.20 installed (go version) Basic familiarity with JSON & HTTP verbs 2. Project setup mkdir todo-api && cd todo-api go mod init github.com/yourusername/todo-api # grab chi and helpful middleware packages go get github.com/go-chi/chi/v5 go get github.com/go-chi/chi/v5/middleware Your go.mod should now list chi v5. ...

July 15, 2025

Prisma & Postgres 101

TL;DR – Prisma makes working with Postgres delightful. Define your schema, generate a type-safe client, and query your database with autocompletion. 1. What is Prisma? Prisma is an open-source ORM (Object-Relational Mapping) toolkit for Node.js and TypeScript. It consists of: Prisma Client – a type-safe query builder. Prisma Migrate – declarative data modeling & migrations. Prisma Studio – a GUI to browse and edit data. Together they eliminate repetitive SQL, reduce runtime errors, and speed up development. ...

July 15, 2025

A New Beginning

Hello, world! Welcome to my corner of the internet 🎉. After a bit of tweaking layouts, choosing color palettes, and refactoring markdown, I’m finally ready to hit publish. In this blog I plan to share: Deep-dives into web development – from performance tips to accessibility wins. Design inspirations – explorations of typography, color theory, and UI/UX patterns that delight. Life and productivity hacks – tools, books, and habits that keep me curious and shipping. Why write publicly? Writing forces clarity. It turns fuzzy ideas into concrete, sharable knowledge. Plus, the internet has been my greatest teacher; this is my way of giving back. ...

July 15, 2025