@ananya_6427 The classic chicken and egg problem of tech ๐ญ Need experience to get an internship. I need an internship to get experience. How is anyone supposed to start?? ๐
@misschopra Glad you got it! DNS issues trip up so many devs.
1.1.1.1 is Cloudflare's DNS faster and more reliable than most default ISP ones. MongoDB Atlas especially struggles with slow DNS resolution
Good fix to keep in mind for the future ๐ช
Honestly? One of the best decisions I made. The content quality and real-world projects were ๐ฅ you actually build things, not just watch tutorials. Mentorship is solid, guidance is always there when needed. But real talk consistency is YOUR responsibility. If you fall behind, catching up is tough.And the content could've been a bit more structured at times. Overall? Worth it. Just show up every day and you'll get out what you put in ๐ช
Hit a point today where writing more code wasn't the answer.
refactoring was.
JWT auth was living inside every controller separately. same logic. copy pasted. works until it doesn't.
pulled it all into a single auth middleware. now it sits in front of every protected route, identifies the user, attaches them to the request, done. One place. one job.
then built the follow model follower and followee both referencing the user. One simple schema that will eventually power the entire feed, follower counts, following lists.
Everything that makes instagram feel like instagram starts here.
Only problem today mongodb atlas blocked my ip. two minutes to whitelist it. back to building.
@sheryians_ Cohort 2 @ankurdotio .
#Backend #NodeJS #BuildingInPublic
@sheryians_ Congratulations to every single one of them๐
Seeing this as a Cohort 2 student hits different
This is exactly the fuel I needed going to work harder than ever now. Won't stop, won't give up until I make it too๐ช
I was so confident today.
multer installed. logic clean. code looking good.
then this showed up
TypeError: Cannot read properties of undefined (reading 'buffer')
Stared at it for way too long. Turns out i just forgot to attach multer to the route. express had no idea a file was in the request. just picked it up, shrugged and handed my controller absolutely nothing.
one line of middleware. that's it. that's the whole fix.
then imagekit decided to move things around in their docs. wrong method. wrong field in postman. every fix came with a free bonus problem attached.
But when it finally worked a logged in user creating a post, uploading an image, stored on CDN, protected by JWT on an instagram clone i built myself that feeling makes every frustrating hour worth it.
no tutorial teaches you this. bugs do.
@sheryians_ Cohort 2 @ankurdotio .
#Backend #NodeJS #BuildingInPublic
today i finally understood how instagram knows it's you.
not your username. not your email. a cookie.
when you log in, the server bakes your user ID into a JWT and stores it in a cookie. every request after that carries it automatically. backend reads it, verifies it, knows exactly who you are.
writing the JWT extraction code was harder than expected. what happens when the token is missing? what happens when it's invalid? each case handled differently.
a backend that doesn't verify who's making a request isn't a backend. it's an open door.
building this into my instagram clone today. getting more real every day.
@sheryians_ Cohort 2 @ankurdotio .
built the post creation feature for my instagram clone today.
upload an image. store it on CDN. route protected by auth. end to end working.
sounds simple. was not simple.
multer, imagekit, bcrypt three tools, three docs, all needing to work together.
also my first time ever reading official documentation in my life.
nobody tells you how to read docs for the first time. you just open the page, try something, watch it break, go back and read more carefully.
typos. postman not cooperating. debugging loops.
but it works. and every bug fixed today is a bug i won't make twice.
@sheryians_ Cohort 2 @ankurdotio .
100% agree but here's the catch you can't use AI efficiently if you don't understand what it's generating
The devs winning with AI aren't the ones who skipped fundamentals. They're the ones who learned enough to catch bad output, debug it, and push it further
College teaching outdated stuff? Valid criticism Skipping foundations entirely? That's a different mistake ๐ฏ