This content originally appeared on DEV Community and was authored by Preeti yadav
As a frontend developer, I thought backend was just “sending data to the frontend.” Oh, how naive I was.
Recently, I decided to level up and dive into NestJS + Prisma for backend development. Hereβs a hilarious (and slightly painful) recap of my journey.
Phase 1: βHow Hard Can It Be?β
Me, confidently installing NestJS:
npm i -g @nestjs/cli
nest new my-backend
Feels good. Feels⦠easy.
Then I opened the main.ts file and saw decorators, modules, controllers, and services.
Frontend Me: βWhereβs the App.js and why does everything look soβ¦ serious?β
Phase 2: Prisma, Why You Betray Me?
Prisma ORM? Sounds fancy.
Me: “Okay, letβs just create a simple user model.”
model User {
id String @id @default(uuid())
name String
email String @unique
}
Then I tried to migrate the database:
npx prisma migrate dev --name init
BOOM. ERROR.
Prisma: “You must define a database URL.”
Me: “Bro, I thought we were friends?”
Phase 3: Authentication β The Final Boss
Frontend: βJust send a token, bro.β
Backend: βHash passwords, verify JWTs, handle refresh tokens, protect routes, configure CORSβ¦β
Me: “I just wanted to build a to-do app .”
After 5 hours of debugging, I finally logged in successfullyβ¦ only to realize I forgot to hash the password before saving it. Now, passwords are stored in plain text. Hackerβs dream.
Phase 4: When It Finally Works
After countless YouTube tutorials and Stack Overflow sacrifices, I finally got my API running!
Tested it with Postman, saw a 200 OK, and felt like a backend GOD.
Final Thoughts: Should You Try Backend?
If you enjoy suffering.
If you want to feel like a hacker while writing SQL queries.
If you want to flex that you know βfull-stack.β
On a serious note, learning backend completes your dev skills and makes you appreciate the work backend engineers do. Would I do it again? 100%. But Iβll always respect my frontend roots.
Your Turn!
Frontend devs, have you ever tried backend? How did it go? Letβs share our pain (and wins) in the comments!
This content originally appeared on DEV Community and was authored by Preeti yadav