Back to Browse

NodeJs CRUD REST API with Nodejs and Sequelize - Sinhalen

255 views
Feb 22, 2025
35:52

In this tutorial, you'll learn how to build a CRUD (Create, Read, Update, Delete) REST API using Node.js, Express, Sequelize, and MySQL. We’ll guide you through setting up your project, defining models, and performing database migrations using Sequelize CLI. What You'll Learn: ✅ Initializing a Node.js project ✅ Installing required dependencies ✅ Setting up Sequelize and MySQL database ✅ Creating models and migrations with Sequelize ✅ Implementing CRUD operations with Express ✅ Running the server with Nodemon for live updates --- Commands Initialize Nodejs Project 👉npm init -y Install required dependencies 👉 npm install express sequelize mysql2 Create Database with sequalize 👉 npx sequelize-cli db:create Create Sequalize Model 👉 npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string Migrate Database 👉 npx sequelize-cli db:migrate Install Nodemon 👉 npm install --save-dev nodemon

Download

1 formats

Video Formats

360pmp447.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

NodeJs CRUD REST API with Nodejs and Sequelize - Sinhalen | NatokHD