Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A secure login app built using node.js + express.js + mongodb

🖐 Hi there, here I've built a secure login app using node.js + express.js + mongodb. I've covered all the fundamental security features that an app MUST have to allow its users to securely login(see below security features). Feel free to use this code and work around it. Hope you got the insights!

🔑Security features covered and packages used:

  1. csurf - CSRF attack
  2. bcryptjs - Password hashing
  3. express-validator - Input validation
  4. connect-mongodb-session - session storage
  5. mongodb - mongodb cluster
  6. mongoose - ODM
  7. express - node.js framework

💻LIVE DEMO

📸ScreenShots:

Login Page Login Page

Dashboard and logout Dashboard and logout

😀How to use this project

  1. Well, first clone or download this repo.
  2. Create a cluster in mongodb Atlas, and then create a collection, and get your access URL to your cluster's database and paste it in app.js for MONGODBURL variable.
  3. Run "npm install" to install dependent packages for the app.
  4. Now, you're ready to go!

📰License

MIT

❤️Loved this project?

Please give me a star⭐ to this repo, I'll be happy😊.

🔗 Let's connect!

Releases

Packages

Contributors

Languages