Рет қаралды 70,396
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
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 ➜ bit.ly/3nGHmNn
🚀 This tutorial is part of a Node.js & Express for Beginners tutorial series playlist:
• Node.js Tutorials for ...
🔗 Starter Source Code: github.com/gitdagray/express_...
🔗 Completed Source Code: github.com/gitdagray/mongodb_...
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: www.mongodb.com/
Mongoose: mongoosejs.com/
📚 JWT References:
Intro to JSON Web Tokens: jwt.io/introduction
All You Need to Know About Storing JWT in the Frontend: dev.to/cotter/localstorage-vs...
NPM jsonwebtoken package: www.npmjs.com/package/jsonweb...
NPM cookie-parser package: www.npmjs.com/package/cookie-...
Deleting Cookies: expressjs.com/en/api.html#res....
Cross-Site Scripting (XSS): owasp.org/www-community/attac...
Cross-Site Request Forgery (CSRF): owasp.org/www-community/attac...
REST Security Cheat Sheet: cheatsheetseries.owasp.org/ch...
📚 Login References:
Bcrypt: www.npmjs.com/package/bcrypt
How to Safely Store a Password: codahale.com/how-to-safely-st...
MDN: HTTP Response Status Codes: developer.mozilla.org/en-US/d...
📚 More References:
Node.js Official site: nodejs.org
NPM Official site: www.npmjs.com/
Express JS Official site: expressjs.com/
MDN CORS: developer.mozilla.org/en-US/d...
NPM CORS: www.npmjs.com/package/cors
✅ Follow Me:
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: yesdavidgray.com
Reddit: / 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