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
From the course: Databases for Node.js Developers
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
-
-
-
-
-
(Locked)
When to use and not to use document databases2m 11s
-
(Locked)
Set up MongoDB4m 39s
-
(Locked)
Connect to MongoDB13m 54s
-
(Locked)
Insert data into MongoDB6m 43s
-
(Locked)
Query data from MongoDB4m 41s
-
(Locked)
Introduction to Mongoose9m 24s
-
(Locked)
Add MongoDB and Mongoose to your project5m 57s
-
(Locked)
Define your first schema and model3m 50s
-
(Locked)
Prepare the item management system6m 4s
-
(Locked)
Implement all database methods7m 48s
-
(Locked)
Implement the user management system7m 26s
-
(Locked)
Encrypting passwords4m 40s
-
(Locked)
-
-
-