How to Insert Data in the MongoDB Database and encrypt the password as well | Expressjs, and MongoDB

Published: 21 August 2023
on channel: Programming Insider
130
22

#react #nodejs #expressjs

This video explores how to insert/ store user data into the MongoDB database by using Express and Mongoose. While we store user information on the database we encrypt the password and validate other inputs, always security is first!

Contents of the video
00:00 - Intro
00:15 Inputs Validation
10:10 Create MongoDB database
17:44 Create Mongoose Schema and Mongoose Model
21:58 Store/ Insert Data in MongoDB Database
44:04 Checking If there is a registration by the email
48:00 Encrypt Password by using bcryptjs
52:01 Encrypt Password in Mongoose middleware (recommended)

🔥Get to know How to Display Data From MongoDB Database by Authenticating Token➡️   • How to Display Data From MongoDB Data...  

🔥Get to know How to Login and Logout by Generate (JWT) JSON Web Token➡️   • How to Login and Logout By Generate (...  

All materials (like pictures, gifs, and codes....) are provided on
• Telegram: https://t.me/programmingInsider/44
• GitHub: https://github.com/ProgrammingInsider...

Subscribe to my channel to support me https://www.youtube.com/@ProgrammingI...


Watch video How to Insert Data in the MongoDB Database and encrypt the password as well | Expressjs, and MongoDB online without registration, duration hours minute second in high quality. This video was added by user Programming Insider 21 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 13 once and liked it 2 people.