Building with purpose 6.2: Retrieving the user from ClerkHaving the long-lived token copied somewhere nearby, it's now time to retrieve the user from Clerk, but to do so, we need to make a few adjustments. From our index.ts, we need to modify the dotenv import and use import "dotenv/config" instead. Make s...Jun 18, 2025·1 min read·1
Building with Purpose 3: Using Prisma and PostgreSQL for the database partNow that we have the authentication implemented, we need to define the database. We first need to add the necessary dependencies. pnpm add @prisma/client prisma pg Create the database: psql -U postgres CREATE DATABASE yourdatabase; With Postgres r...Apr 15, 2025·3 min read·6
Building with Purpose 2: Adding authentication with ClerkThis part is going to be pretty close to the guide provided by Clerk, but we’ll add a few things to make it look different. I’m assuming you know how to create an account at Clerk, so we’ll skip that part. Once registered, it’ll ask you to create a n...Mar 21, 2025·2 min read·39
Building with Purpose 1.1: Making logs prettier with pino-prettyIn the previous article, we saw these screenshot with the first logs of our backend server. They work but they don’t look great (I mean, they can look better). We’ll do this with pino-pretty. The default logging in fastify is made with pino,but we c...Mar 2, 2025·2 min read·34
Building with Purpose 1: Setting up the backend partAll right, here we go, the backend journey starts! Setting up the project First and foremost, we create the folder, access it, and run pnpm init (unlike npm, this command doesn't require the -y flag and isn't interactive). Now we are going to use git...Feb 27, 2025·4 min read·22
Building with Purpose: A Developer's Quest for Balance in 2025Why this project? The end of 2024 and the beginning of 2025 have been heavily influenced by AI for me (and most of us developers). I don’t use it much at work, but at home, using Cursor, I found myself using it too much. I realized this when I though...Feb 14, 2025·2 min read·46
My Top 10 Coding FontsIn my opinion, choosing the right font for coding can make a big difference in your overall experience. In this article, I’ll be sharing my top 10 favorite programming fonts, based on my personal preferences. 1. MonoLisa (Paid with free limited optio...Aug 22, 2024·1 min read·1.9K