SGSahil Guptainsahilxdev.hashnode.dev·5d ago · 8 min readJWT Authentication in Node.js Explained SimplyHow does a server know who you are on every request? Many beginners think the server remembers them after login. That's not true. HTTP is stateless. Every request arrives like a stranger, with no memo02P
SGSahil Guptainsahilxdev.hashnode.dev·6d ago · 8 min readSessions vs JWT vs Cookies: How Does a Server Remember You?How does a server remember that you are logged in? You log in once. Then you open ten more pages, and the app never asks for your password again. Many beginners think the server simply "remembers" the00
SGSahil Guptainsahilxdev.hashnode.dev·Oct 7 · 6 min readWhere Do Uploaded Files Go? Storing and Serving Them in ExpressWhere do uploaded files go after Multer saves them? Many beginners think an uploaded file lives inside the request, or inside the database. That's not true. A file is just bytes written to a disk. You00
SGSahil Guptainsahilxdev.hashnode.dev·Oct 6 · 7 min readHandling File Uploads in Express with MulterWhy can't Express read a file upload on its own? You build a form with a file input. You submit it. You log req.body. It is empty. Many beginners think Express is broken or that it express.json() shou00
SGSahil Guptainsahilxdev.hashnode.dev·Oct 5 · 7 min readREST API Design Made Simple with Express.jsWhat does "REST API" actually mean? Many beginners think REST is a library or a framework you install. That's not true. REST is a set of rules for how a client and a server talk to each other over HTT00
SGSahil Guptainsahilxdev.hashnode.dev·Oct 2 · 7 min readWhat is Middleware in Express and How Does It Work?What happens to a request before it reaches your route? You send a request to /api/users. Your route handler sends back a response. Many beginners think the request goes straight from the browser to t00
SGSahil Guptainsahilxdev.hashnode.dev·Oct 1 · 7 min readURL Params vs Query Strings in Express.js: Which One Should You Use?How does Express know which user you want, and how do you filter the results? You open /users/42 and get one user. You open /search?q=laptop&sort=price and get a filtered list. Both look like normal U00
SGSahil Guptainsahilxdev.hashnode.dev·Sep 26 · 7 min readWhy Does Everyone Use Express Instead of Plain Node.js?Why Does Everyone Use Express Instead of Plain Node.js? Many beginners think Express is some separate framework that replaces Node.js entirely - like choosing React instead of vanilla JavaScript. That00
SGSahil Guptainsahilxdev.hashnode.dev·Sep 23 · 6 min readHow Does Node.js Handle Multiple Requests With Just One Thread?How Does Node.js Handle Multiple Requests With Just One Thread? Many beginners assume this: one thread means one request at a time. So a Node.js server should choke the moment a second user shows up. 00
SGSahil Guptainsahilxdev.hashnode.dev·Sep 22 · 6 min readBlocking vs Non-Blocking Code in Node.js: What Every Beginner Gets WrongWhy Does One Slow Request Freeze Your Entire Server? Many beginners assume each incoming request in Node.js runs in its own little bubble. So if one request is slow, it should only affect that request00