Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Introduction to Sequelize ORM (w/ Express.js + Postgres)
Rating: 4.0 out of 5(113 ratings)
700 students

Introduction to Sequelize ORM (w/ Express.js + Postgres)

Learn how to build an authentication backend with Express.js, Sequelize ORM, Postgres, Docker and testing it with Jest
Last updated 8/2021
English
English [Auto],

What you'll learn

  • Learn how to build a production-level application with Express
  • How to set up a development environment that is easily reproducible and painless
  • Learn how to write migrations for our Postgres database using Sequelize ORM
  • Expect to write tests for every line of code we write in our application

Course content

7 sections60 lectures5h 20m total length
  • Introduction1:40

    Master Sequelize ORM with Express.js and Postgres by building a simple authentication system with register, login, logout, and tokens, and learn testing with Supertest and web tokens.

  • Necessary tools - Advise for Windows users5:20

    Discover essential tools for Windows users, including Windows Subsystem for Linux 2, Windows Terminal, Docker, and optional Ohmy to achieve Linux-like development.

  • Necessary tools - Node Version Manager (NVM)4:14

    Manage multiple node versions with Node version manager (nvm), installing long-term support or latest releases and switching between them for different projects using commands like nvm install and nvm use.

  • Join the Discord community0:05
  • About reviews0:11
  • Necessary tools - Docker and Docker Compose4:22

    Install docker and docker compose using docker desktop on Windows, Mac, or Linux, then manage containers, images, and volumes to build dev environments for postgres databases with docker-compose.

  • Necessary tools - Postman and DBeaver2:18

    Learn to install and use Postman and DBeaver to test your application and manage the database, connect to tables, and perform operations like deleting records across MySQL and other databases.

  • Installing VSCode2:39

    Install Visual Studio Code and enable remote development with Windows Subsystem for Linux. Connect the editor to WSL using the extension shown for seamless editing from the terminal.

Requirements

  • No

Description

Hi and welcome to this course! Here, you will learn A LOT about how to build a simple backend with production-level code. We are going to learn how to set up a local database with Docker, how to use Express.js with Sequelize as the ORM and manipulate the database, how to test our code with Jest and more importantly, how to structure our code to test it easily. We will also learn:

  • Sequelize best practices (how to register models, how to register associations between models, how to add scopes, how to make simple queries, how to write migrations, etc.)

  • JWT and Bcrypt to handle authentication and

  • Testing with Jest (remember that untested code is broken code)

  • Express middlewares and how to test them

  • Docker and Docker Compose to set up a local database and avoid installing databases locally

  • Best practices in general (separating the Express app from the server for easier testing, separating model logic from the controller, hiding passwords from the response, etc.)

This course is different as I am looking for you to learn how production-level code looks like and build the habit to test every line of code you write! Most courses skip testing, but the reality is that testing is so important on software development that it is unbelievable that most courses out there just skip them.

Who this course is for:

  • Beginner NodeJS developers
  • Developers interested in backend development
  • Developers interested in the Express framework