Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

In this MongoDB MERN Stack Tutorial you will learn how to create a MongoDB database and connect it to your project. You will also learn how to use Mongoose to create data models to interact with your MongoDB database.

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- Advanced React & Redux: https://bit.ly/AdvReactDev
- The Complete Node.js Developer: https://bit.ly/CompleteNodeJS
- Jr to Senior Web Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

Subscribe https://bit.ly/3nGHmNn

Course Updates https://courses.davegray.codes/

Discord https://discord.gg/neKghyefqh

Buy Me A Coffee https://www.buymeacoffee.com/davegray

Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/

Note: If you use Mongoose version 7 or higher, the mongoose-sequence package I introduce in Chapter 3 will not work. Solutions: 1) Use this updated mongoose sequence package: https://www.npmjs.com/package/mongoose-sequence-generator ..or 2) Use the dependency versions I list in my package.json file for this project.

All Resources for this MERN Stack Project: https://github.com/gitdagray/mern_stack_course

Playlist for this MERN Stack Project Series: https://bit.ly/3Sn4EaI

MongoDB MERN Stack Tutorial | MERN Project Data

(00:00) Intro
(00:13) Welcome
(00:23) Suggested Pre-requisite
(00:36) Starter Code
(00:46) Environment Variables
(05:27) Set up your MongoDB database
(10:59) Add your connection string
(11:36) Add Mongoose to the project
(12:05) Create a User data model
(17:10) Create a Note data model
(24:10) Create a connection to MongoDB

Suggested Pre-requisites for this MERN course:
Node.js for Beginners full course: https://youtu.be/f2EqECiTBL8
React JS for Beginners full course: https://youtu.be/RVFAyFWO4go
Redux Toolkit for Beginners full course: https://youtu.be/NqzdVN2tyvQ
React Login Playlist: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6PRCpm9clX0WiBEMB70FWwd

Tutorial References:
MongoDB: https://www.mongodb.com/
MongooseJS: https://mongoosejs.com/
dotenv: https://www.npmjs.com/package/dotenv
mongoose-sequence: https://www.npmjs.com/package/mongoose-sequence

Was this MERN Stack MongoDB tutorial helpful? If so, please share. Let me know your thoughts in the comments.

#mern #stack #mongodb