Course curriculum

    1. Welcome to the course!

    2. Complete source code folder

    1. 1.1 - Project initiation

    2. 1.2 - Installing Express and creating a HTTP server

    3. 1.3 - Implementing our first API route

    4. 1.4 - Installing Nodemon

    1. 2.1 - Abstracting the Express Router

    2. 2.2 - Setting up a register route

    3. 2.3 - Creating the login and logout routes

    4. 2.4 - Connecting router to the Express server

    5. 2.5 - Catching routes that are not defined

    1. 3.1 - Implementing a User class

    2. 3.2 - Adding methods to the User class

    3. 3.3 - Implementing validation on User model

    4. 3.4 - Finishing validation on the user class

    5. 3.5 - Hashing passwords with bcrypt

    6. 3.6 - Wiring up login post route to model

    1. 4.1 - Creating a mock database

    2. 4.2 - Adding class methods onto the DB class

    1. 5.1 - An overview of the auth flow

    2. 5.2 - Installing and configuring Passport

    3. 5.3 - Authenticating the login request

    4. 5.4 - Implementing cookie-session middleware

    5. 5.5 - Validating email and password

    6. 5.6 - Finishing auth flow in login route and testing

    7. 5.7 - Deserialising the user

About this course

  • Free
  • 46 lessons
  • 5.5 hours of video content

Discover your potential, starting today