课程: Databases for Node.js Developers (2021)

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Implement the user management system

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…

内容