From the course: Databases for Node.js Developers
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Creating, updating and deleting users with Sequelize - Node.js Tutorial
From the course: Databases for Node.js Developers
Creating, updating and deleting users with Sequelize
- [Instructor] In this video, we will implement the full CRUD functionality for managing users in our application. For that, we will connect the routes to our Sequelize user models, create all the queries that we need, and then render the results in the template to show up here. As we see already, there is a form to create users. We don't have a user registration flow. In this application, let's assume an admin has to create every new user. And we will also have a way to list all existing users. And also, of course, we will be able to edit and delete users. So let's head into Visual Studio Code, and there I open src, routes, admin, users. If you're curious about how the template works, it's in views, admin, user. Let's close the sidebar. And in there, you see that we already have the whole boilerplate for this routes file ready, and you will see that adding the database function is not really just minimal work. Everything that we need is already provided for us by the infrastructure…
Contents
-
-
-
-
-
-
(Locked)
Using MySQL for our users and orders1m 8s
-
(Locked)
Setting up MySQL with Docker2m 49s
-
(Locked)
Exploring MySQL with MySQL Workbench1m 57s
-
(Locked)
Introducing Sequelize1m 51s
-
(Locked)
Setting up the database connection7m 43s
-
(Locked)
Designing the database structure2m 1s
-
(Locked)
Creating a user model for Sequelize7m 47s
-
(Locked)
Creating the order models for Sequelize11m 56s
-
(Locked)
Loading and syncing the models13m 5s
-
(Locked)
Creating, updating and deleting users with Sequelize12m 52s
-
(Locked)
Securing credentials with password hashing7m 2s
-
(Locked)
Implementing the user login9m 15s
-
(Locked)
-
-
-