jordi0lle.hashnode.devBuilding 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
jordi0lle.hashnode.devBuilding with purpose 6.1: Getting the long live tokenNow that the user is created, we need to generate the long-lived token to continue with the backend and set aside the frontend for a while. To do this, we’ll go to our Clerk dashboard, select the Configure tab, and click on the JWT templates item. O...Jun 4, 2025·1 min read
jordi0lle.hashnode.devBuilding with purpose 6: Setting up the frontendNow we’re moving towards the frontend part because we want to get the long-lived token from Clerk in order to test the backend fully with it (because right now we can only see the "User not authenticated" message). Here we go! Adding React Router We’...May 28, 2025·3 min read
jordi0lle.hashnode.devBuilding with purpose 5: Configuring Husky for commit lintingI’ve never used it, but I always wanted to, so here we go. I know it’s something that’s done at the beginning, but we’re not that far from it. For the moment, I just want to use Husky for commit lint because I like my commits well defined and not jus...Apr 29, 2025·2 min read
jordi0lle.hashnode.devBuilding with Purpose 4: Adding the models and relationsWith the database set up, we can now add more models. Thinking about it, we can see three models right now: User (which we already have). Feedback. Town. model User { id Int @id @default(autoincrement()) email String ...Apr 17, 2025·3 min read