From the course: Databases for Node.js Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Implement the user management system

Implement the user management system

From the course: Databases for Node.js Developers

Start my 1-month free trial

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, john@acme.com 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…

Contents