What do you do with your user's password? Do you store it into the database? Passwords are like real world keys You don’t! You should never store the raw password into your application. Some badly coded websites store the raw password into their database. They store the actual password and even send you via email: They send the password This means your password is at … [Read more...] about How To Properly Handle Your User’s Passwords
So last week I put together a reddit like site, a clone of reddit as you can say. This is my first MERN stack application I am putting out to the world. I pretty much did a rush work and cut a lot of corners, just to get it out there and see how it goes. The reddit like site Features A user can get a display name. This time I did not use any user registration mechanism. This also lead to … [Read more...] about Thoughts after Building a Reddit Clone in MERN (Node & React)
For those who don’t know, MERN stands for Mongo database, Express framework, React.js framework and Node.js runtime environment. Together they create a software stack for building custom web application. Now that’s all the technical stuff, let me share what’s exactly I mean by all this.. So I know how to make simple websites with HTML and CSS. But the problem is, those sites are dumb, they … [Read more...] about Finally I got to Build a MERN Stack Application!
As funny and absurd as it sounds, I think it’s a similar feeling. I chased node, I tried to figure it out. I dreamt of building stuff with node. Eventually I figure it out. I learned how to build stuff with it. Then slowly I got bored with it. Looks like the honeymoon period is over :( Kinda like this guy This is actually an interesting take on learning code. And this also happened with … [Read more...] about Node.js is like My Wife and I am Getting Bored with Her :(
Last season I built a twitter clone in Node.js. It’s a social media web application built with Node.js, Express, Mongoose and Passport.js. Twitter clone front page I deployed the app into a live server in Heroku, making it my first live Node/Express app. I first shared the link onto the Node.js Facebook group for feedback. I also asked people not to attack it. Here's the app in … [Read more...] about Thoughts After Building a Twitter Clone in Node.js
The first thing you learn when building a web application is CRUD, Create Read, Update and Destroy. I was learning Node.js to build the backend of my application. The first few lessons were about creating data, and then editing it. In MongoDB mongoose, there are some handy commands for creating, editing items. Let’s say I have a blog post which I created. To edit it, I call the … [Read more...] about Deleting an Item From MongoDB Mongoose By User Permission