I was just doing Frontend Development a few months ago, was enjoying building personalised UI/UX templates with React and different styling options like materialize css, material UI ,Sass and what not. Though I was aware that Frontend was just not enough for me I had to start with Backend any day now, but like everyone else struggled with motivation.
For me that day of motivation came in with a college project that a team of three has to work on.As a start I switched to Next.js and that was really smooth, then I worked with nodejs,building API,Mongodb and all that Backend stuff.
But I struggled putting all of these things together to build a Login~Signup Authentication for our project.I watched every single video on youtube for the topic but failed to get things working.This was the start to my backend journey and it was quite what I thought it would be like.
After alot of research and all came to know about passport.js and here we are with things working. Thanks to Hoang,his blogs helped me alot and finally I completed my first backend task.
I do realise after all of this that there might be people like me trying hard to make there first Authentication backend to work. So I decided to put this simple working model up for those who are seeking hard for it.
I hope it helped you and I know there are tons of bugs and incomplete parts in the code I'll be working on that, to know more check out the github repository for the same.