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

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