How to create MongoDB Schemas and Data Models | Node.js Tutorials for Beginners

  Рет қаралды 68,414

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 48
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
In this tutorial, we'll use Mongoose JS to create Schemas that will define the shape and types of our MongoDB data. We'll also create Mongoose JS data models that will allow our app to interact with our data collections and documents stored in MongoDB. Finally, we'll apply the data model to the user registration route in our Node.js and Express REST API. If you're just getting started with Node.js, I suggest starting at the beginning of this Node.js Tutorials for Beginners series here: kzbin.info/aero/PL0Zuz27SZ-6PFkIxaJ6Xx_X46avTM1aYw
@demiontongov4319
@demiontongov4319 Жыл бұрын
wow, this is interesting
@thescholar6511
@thescholar6511 9 ай бұрын
this is nice, but i would like to see the video before this one. did you take it down?
@yashwantg5045
@yashwantg5045 3 жыл бұрын
You have explained so much in depth and so easily that even beginner like me understood everything
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
That's great to hear! Thank you for the comment. 💯
@yoshi8171
@yoshi8171 3 жыл бұрын
Great tutorial as usual ! Leaning through your courses, I’m improving not only my programming skills but also my English as well😁
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Good job! Keep it up! 💯
@ahmad-murery
@ahmad-murery 3 жыл бұрын
Same here
@themixmaster
@themixmaster 3 жыл бұрын
Thanks for the cool tutorial, it's great that such videos available in the public!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome! 💯
@vladislavamarkova8379
@vladislavamarkova8379 3 жыл бұрын
I so much appreciate your tutorials... And I want to thank you for the time and effort to make these explanatory examples and in a way so that we can understand and further use these techniques. It was your tutorials on nodejs and etc. that gave me the right base so to have the desire to learn and gain experience with more practice. 🙏
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thank you so much, Vladislava! Comments like yours keep me going. I started this channel to help others learn, and it is great to know that's what I am doing. 💯
@benarcher372
@benarcher372 3 жыл бұрын
Soon 10k subscribers. Well deserved.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thank you, Ben!
@nicolesyflaire2280
@nicolesyflaire2280 Жыл бұрын
Congratulations on your 1000th like!
@CarlosWashingtonMercado
@CarlosWashingtonMercado Жыл бұрын
Nice message at the end of the video. 🙂
@sayidradhinpm8761
@sayidradhinpm8761 Жыл бұрын
Amazing 🎉.There are two benifit, it improved my english and i coding...
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad to hear that!
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
Amazing tutorial thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're very welcome! 💯
@M.H.12-m2s
@M.H.12-m2s 7 ай бұрын
pls a video explaining the relationship between models. pls
@szymonrojek6480
@szymonrojek6480 2 жыл бұрын
Hi Dave, I can not find the next part ot this tutorial which you mentioned in this video at the end (after refactor with MongoDB auth), is it available? many thx I love all your videos! great job
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you! Here's the full playlist: kzbin.info/aero/PL0Zuz27SZ-6PFkIxaJ6Xx_X46avTM1aYw
@Viral_noob
@Viral_noob 5 ай бұрын
highly interesting
@AmitKumar-tw1sj
@AmitKumar-tw1sj 2 жыл бұрын
Which theme are you using? Also great video!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you! I made a short about my theme choice: kzbin.infodp4u1NNFhtE
@oryankibandi3556
@oryankibandi3556 3 жыл бұрын
Quick question: I've noticed in this series we are hashing the users password in the backend. Is it safe sending the user's password on a http request to the backend without hashing it from the frontend?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Nothing frontend is 100% safe, but I prefer hashing on the backend for storage. Send from the frontend using a post request.
@oryankibandi3556
@oryankibandi3556 2 жыл бұрын
@@DaveGrayTeachesCode Thank you. The content on your channel is amazing.Great stuff.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
@@oryankibandi3556 thank you for the kind words!
@pablovaldes2397
@pablovaldes2397 2 жыл бұрын
awesome tutorial man, very useful, the source code you provided too is also really nice, thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You are welcome!
@ayushgandhi577
@ayushgandhi577 3 жыл бұрын
I hope you will create a tutorial on mongodb advance topic like aggregation and sharding in future as well😀
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks for the suggestion! 🙏 💯 Have you also looked at MongoDB University? They offer free courses for developers with a certification upon completion: university.mongodb.com/
@ayushgandhi577
@ayushgandhi577 3 жыл бұрын
@@DaveGrayTeachesCode Wow, I don't know about these free MongoDB courses. Thanks, Dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
@@ayushgandhi577 you're welcome! When you get to the dev course, there are also language choices like JS, Python, etc. I think it has been updated since, but I took it with Python about 3 years ago.
@yoshi8171
@yoshi8171 3 жыл бұрын
@@DaveGrayTeachesCode Great source to learn mongo db! Thanks.
@ahmad-murery
@ahmad-murery 3 жыл бұрын
@@DaveGrayTeachesCode Thanks for the link Dave, I must have a look.
@UHTWW
@UHTWW 2 жыл бұрын
Hi, for anyone who's trying to call the route and for some reason the request failing, try to add the cors, origins and body parser.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Hello, if you look at the starter source code link in the description, you will see how CORS is set up. Also note that body parser is outdated. The starter source code has the middleware for parsing json and cookies applied. You can go back through the following playlist to see how everything was built: kzbin.info/aero/PL0Zuz27SZ-6PFkIxaJ6Xx_X46avTM1aYw
@UHTWW
@UHTWW 2 жыл бұрын
@@DaveGrayTeachesCode Thank you. I forgot to say very good videos.
@sakamoshikaka9939
@sakamoshikaka9939 2 жыл бұрын
Hi, where is your cods for downloading? I checked and search everywhere I could. You said its available for downloading.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
There are two links in the description labeled "Starter Source Code" and "Completed Source Code".
@memduhcevik
@memduhcevik Жыл бұрын
Sir, VsCode's intellisense is too laggy after installing mongoose. Do you have any idea about that? I didn't found any solution yet =\
@Pareshbpatel
@Pareshbpatel Жыл бұрын
{2023-10-11}
MongoDB Schema Design Best Practices
50:39
Joe Karlsson
Рет қаралды 175 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Intro to MongoDB and Mongoose | Node.js Tutorials for Beginners
17:06
Data Modeling with MongoDB
34:56
MongoDB
Рет қаралды 113 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 243 М.
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 342 М.
CRUD API Tutorial - Node, Express, MongoDB
1:33:14
freeCodeCamp.org
Рет қаралды 342 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 227 М.
MongoDB Crash Course - Schemas and Relationships
46:28
The Full Stack Junkie
Рет қаралды 43 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 448 М.
I tried 5 Firebase alternatives
10:31
Fireship
Рет қаралды 824 М.