Intro to MongoDB and Mongoose | Node.js Tutorials for Beginners



Intro to MongoDB and Mongoose | Node.js Tutorials for Beginners

Intro to MongoDB and Mongoose | Node.js Tutorials for Beginners

In this intro to MongoDB and Mongoose you will learn how to set up a MongoDB database and connect to it with Mongoose from your Node.js application. MongoDB uses a NoSQL database structure with collections and documents.

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

🚀 This tutorial is part of a Node.js & Express for Beginners tutorial series playlist:
https://www.youtube.com/playlist?list=PL0Zuz27SZ-6PFkIxaJ6Xx_X46avTM1aYw

🔗 Starter Source Code: https://github.com/gitdagray/express_user_roles

🔗 Completed Source Code: https://github.com/gitdagray/mongodb_mongoose_intro

Intro to MongoDB and Mongoose | Node.js Tutorials for Beginners

(00:00) Intro
(00:05) Welcome
(00:16) What is NoSQL and MongoDB?
(02:05) Sign up for a MongoDB account
(02:39) Create a MongoDB database
(05:14) Create a database user
(06:15) Get the database connection string
(07:37) Project Source Code
(07:54) Place the connection string in dotenv
(08:53) dotenv adjustment
(10:04) Install mongoose dependency
(11:14) Connect app to MongoDB

🌱 MongoDB and Mongoose References:
MongoDB: https://www.mongodb.com/
Mongoose: https://mongoosejs.com/

📚 JWT References:
Intro to JSON Web Tokens: https://jwt.io/introduction
All You Need to Know About Storing JWT in the Frontend: https://dev.to/cotter/localstorage-vs-cookies-all-you-need-to-know-about-storing-jwt-tokens-securely-in-the-front-end-15id
NPM jsonwebtoken package: https://www.npmjs.com/package/jsonwebtoken
NPM cookie-parser package: https://www.npmjs.com/package/cookie-parser
Deleting Cookies: http://expressjs.com/en/api.html#res.clearCookie
Cross-Site Scripting (XSS): https://owasp.org/www-community/attacks/xss/
Cross-Site Request Forgery (CSRF): https://owasp.org/www-community/attacks/csrf
REST Security Cheat Sheet: https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html

📚 Login References:
Bcrypt: https://www.npmjs.com/package/bcrypt
How to Safely Store a Password: https://codahale.com/how-to-safely-store-a-password/
MDN: HTTP Response Status Codes: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

📚 More References:
Node.js Official site: https://nodejs.org
NPM Official site: https://www.npmjs.com/
Express JS Official site: https://expressjs.com/
MDN CORS: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
NPM CORS: https://www.npmjs.com/package/cors

✅ Follow Me:
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Blog: https://yesdavidgray.com
Reddit: https://www.reddit.com/user/DaveOnEleven

Was this tutorial intro to MongoDB and Mongoose with Node.js helpful? If so, please share. Let me know your thoughts in the comments.

#mongodb #mongoose #nodejs

Comments are closed.