A Prisma Nest
Hey There
So I started a new project, this one is for our school module. We're making a wellness app. Yada Yada, I'll talk about that later.
The Backend
I'm currently working on the backend of said App, It uses Nest.js (their Logo is a cat, of course I used it for that) and Prisma for all the CRUD (because SQL BOOOOO).
I started earlier today creating the schema for the database and generating the migration. A few problems came with it, notably the actual CRUDDING.
I had to actually create a user and using the base prisma docs (which are fantastic btw). I came across an error particularly about me using the prisma client directly instead of using a service. I delegated to chat, it over complicated and just when I said simplify I ran out of free premium responses (I'm not paying for AI). Moved to Claude, yea that one is a real real death
I had to actually create a user and using the base prisma docs (which are fantastic btw). I came across an error particularly about me using the prisma client directly instead of using a service. I delegated to chat, it over complicated and just when I said simplify I ran out of free premium responses (I'm not paying for AI). Moved to Claude, yea that one is a real real death
See claude is powerful, very, but it's a little pessimistic so it gave me the most complicated implementation and went above and beyond, I was looking at Google Engineer quality code, I'm just trying to get a 2.1 in the moduleπ.
After all the AI's had disappointed me (Chat and Gemmy wanted me to pay, smh) I went to good ol YouTube. Tutorial hell, actually not funny enough it made sense, actually showed me why I'd be a terrible vibe coder, I need to understand the code!!!!
So i just needed to create a database service that extends the prisma client and from that import it and then create my user from there. It worked, now to deal with the react auth hook in the frontend.
After all the AI's had disappointed me (Chat and Gemmy wanted me to pay, smh) I went to good ol YouTube. Tutorial hell, actually not funny enough it made sense, actually showed me why I'd be a terrible vibe coder, I need to understand the code!!!!
So i just needed to create a database service that extends the prisma client and from that import it and then create my user from there. It worked, now to deal with the react auth hook in the frontend.

Comments
Post a Comment
Say something Diego!