课程: Databases for Node.js Developers (2021)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Connect to MongoDB
- [Instructor] We will now extend our maxcoin sample application to connect to the MongoDB server that we just installed. For that, I will change into the maxcoin directory on my integrated terminal here and I will also open the maxcoin directory here on the left menu bar. All databases have some communication channel that can be used programmatically and database drivers provide us with an API to perform operations on the database using this channel. For MongoDB, there is an official npm module called MongoDB and we can install it by simply typing npm install MongoDB. And if we look into package.json, we see that it now installed MongoDB and its diversion in my keys no 3.6.2. To know how to use this driver, there is of course an API documentation. So if I head into my browser, I can look for MongoDB node.js api, and there. I end up on a page and there you see a list of different drivers and links to the Reference and…
内容
-
-
-
-
-
(已锁定)
When to use and not to use document databases2 分钟 11 秒
-
(已锁定)
Set up MongoDB4 分钟 39 秒
-
(已锁定)
Connect to MongoDB13 分钟 54 秒
-
(已锁定)
Insert data into MongoDB6 分钟 43 秒
-
(已锁定)
Query data from MongoDB4 分钟 41 秒
-
(已锁定)
Introduction to Mongoose9 分钟 24 秒
-
(已锁定)
Add MongoDB and Mongoose to your project5 分钟 57 秒
-
(已锁定)
Define your first schema and model3 分钟 50 秒
-
(已锁定)
Prepare the item management system6 分钟 4 秒
-
(已锁定)
Implement all database methods7 分钟 48 秒
-
(已锁定)
Implement the user management system7 分钟 26 秒
-
(已锁定)
Encrypting passwords4 分钟 40 秒
-
(已锁定)
-
-
-