Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Node.js API Development with Expressjs, MongoDB and REST API
Rating: 3.8 out of 5(62 ratings)
7,115 students

Node.js API Development with Expressjs, MongoDB and REST API

Learn backend API development with Node.js, Express.js, MongoDB, routing, authentication, and REST APIs step by step now
Last updated 8/2026
English
English [Auto],

What you'll learn

  • Working with more demanded technology in the industry
  • REST API development from the scratch
  • Working with MySQL database with Node JS and Express
  • Will learn about the most popular Sequelize ORM
  • You will learn to work with React and Bootstrap as well

Course content

2 sections26 lectures3h 18m total length
  • Introduction2:01

    Learn to build a full stack API with Express, connect to a Sequelize database, and secure credentials using environment files while implementing token-based login with hashed passwords.

  • Environment Setup3:00

    Install Norges on your Windows machine, set up Visual Studio Code, and configure MySQL Workbench and Postman (or a REST client extension) to design and test the API.

  • Environment Setup0:21
  • Node JS Project Setup18:47

    Set up a Node.js project with Express, install nodemon, body-parser, and cookie-parser, create index.js, and implement registration and login routes with express-validator.

  • Database Design8:45

    Explore database design for a React and Express app by building a MySQL database named YouTube with a registration table and backend endpoints for registration and login.

  • Creating Controller for Registration5:50

    Develop a registration controller to handle post requests and read the username and password from the request body. Validate input and return appropriate status codes and error messages.

  • Setting up Sequelize ORM12:28

    Set up the Sequelize ORM by building a DB helper to configure and authenticate a MySQL connection, export the engine, test with a simple query, and prepare models integration.

  • Connecting Sequelize with Express9:42

    Build a Sequelize-based registration model in Express, update the registration table with username, password, and salt, and add a create method to insert users.

  • Starting with Registration API9:05

    Learn to implement a registration api by passing username and password from the controller, encrypting the password, invoking the model, and handling success and error responses.

  • Fixing Registration Route Issue4:34

    Fix the registration route by exporting the router correctly, handling a post request with a JSON body (username and password), and confirming successful database insertion on port 8082.

  • Starting with Login API11:04

    Create a login endpoint using a post route, validate username and password with Express Validator, hash and compare credentials, and handle login flow in the controller.

  • Continue with Login API10:36

    validate the username and password against the database, encrypt the password, and generate a simple token (jwt) to return with a 200 response or a 401 unauthorized on failure.

  • Fixing Database Issue9:23

    Fix a database issue by widening the password field and validating user data in an Express.js API. Learn table creation, registration and login endpoints, MVC structure, and token-based authentication.

  • Source Files0:01

Requirements

  • Installed Node JS and a editor of your choice

Description

Are you planning to start Node.js API development? Then you’re in the right place.

This course is designed for beginners who want to learn **RESTful API development using Node.js and Express.js**. If you have a basic understanding of JavaScript and Node.js, this course will help you build a strong foundation in backend development.

Throughout the course, we will build a complete **user registration and login application** from scratch. Every feature is implemented step by step, and I explain the common errors that occur during development and how to fix them. The goal is not only to write code, but also to understand why each part of the application is built the way it is.

By the end of the course, you will be able to set up a Node.js application from scratch, create database tables, securely manage database credentials, generate password salts, and implement industry-standard user registration and login functionality. We will use **Sequelize ORM** to connect and interact with a **MySQL database**.

I encourage you to ask questions whenever you get stuck—whether it’s during development environment setup or while working through the course. I’m here to help you become comfortable with Node.js backend development.


### Prerequisites


* Basic knowledge of JavaScript

* Basic understanding of Node.js

* Node.js and a code editor installed on your machine


I hope you enjoy the course, and I look forward to seeing you inside!

Who this course is for:

  • This course is for the beginner who started with Node JS REST API development using Express
  • Developers who wanted to have basic knowledge of Sequelize ORM, React, Bootstrap. Node and Express