课程: Databases for Node.js Developers (2021)
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Implement the user management system
- [Instructor] Any shop needs customers or users and also our shop comes with the concept of a user and we need it later to implement things like a shopping basket or some order management. For that, I created this Manage User section here, and as you see here, our users pretty simple. They just have an email address and a password. So let's try to fill out this form, [email protected] and you get some password and hit Submit. And as we see here we have still some work to do in our code. So let's switch to visual studio code and there I open Shopper, Server, Routes, Admin, User, Index.js and as before we have the whole logic here commented out because it contains the database logic and we will now enable all these routes. Let's start with sketch route in line six. So you see that it takes an optional user ID. If no user ID is given, this route will return all users in the database and with the user ID it will return a…
内容
-
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-
-