I just want to know how nodeJs work with mongoDB in a login page.
I’ve worked with many code in google, like ejs, passport etc.its showing a big code for this login page. I am totally new to nodejs and mongodb.
so i want to know how these are connected in login page with a simple code.
(I dont need mongodb connecting code, i need how both can work to do in a login form).