Free Course Image Express JS Full Tutorial

Free online courseExpress JS Full Tutorial

Duration of the online course: 7 hours and 57 minutes

New

Free Express.js backend tutorial: build APIs with routing, middleware, validation, auth, MongoDB, sessions, OAuth2, and Jest testing.

In this free course, learn about

  • Express Fundamentals and Routing
  • CRUD Requests and API Patterns
  • Middleware, Validation, and Routing Structure
  • State Management: Cookies and Sessions
  • Authentication and User Security
  • Testing Express Applications

Course Description

Build real backend skills with this free Express.js full tutorial in Technology and Programming, focused on modern backend development with Node.js and Express. You will learn how to create a server, design clean API endpoints, and handle common HTTP flows used in production web apps.

Progress from fundamentals to practical request handling, including routing patterns, route and query parameters, and working with POST, PUT, PATCH, and DELETE operations. You will also explore middleware concepts and validation techniques to help keep your APIs reliable, secure, and maintainable.

Go beyond basics by structuring applications with routers and implementing stateful features using cookies and sessions. The course also introduces authentication approaches, including Passport-based strategies and OAuth2 concepts, giving you a strong foundation for login and protected routes in Express applications.

To connect your API to persistent data, you will work with MongoDB and learn essential security practices such as hashing passwords and using session stores. Finally, you will strengthen code quality by learning testing workflows with Jest and understanding how integration fits into an end-to-end backend project.

Course content

  • Video class: Express JS #1 - Introduction 11m
  • Exercise: What is the main purpose of calling app.listen(port) in an Express application?
  • Video class: Express JS #2 - Get Requests 09m
  • Exercise: In an Express app, what does a route (endpoint) represent?
  • Video class: Express JS #3 - Route Parameters 09m
  • Exercise: In Express, how do you define a route parameter to capture a dynamic user ID in the URL?
  • Video class: Express JS #4 - Query Parameters 12m
  • Exercise: In Express, which property is used to access query string parameters like ?filter=username&value=an on a GET request?
  • Video class: Express JS #5 - Post Requests 13m
  • Exercise: What must be added so Express can read JSON data sent in a POST request body?
  • Video class: Express JS #6 - PUT Requests 14m
  • Exercise: Which statement best describes the difference between PUT and PATCH when updating a user in an API?
  • Video class: Express JS #7 - PATCH Requests 09m
  • Exercise: In Express, what is the main purpose of a PATCH request compared to a PUT request?
  • Video class: Express JS #8 - DELETE Requests 07m
  • Exercise: In an Express DELETE route like /api/users/:id, what is the correct behavior when the provided :id is not a valid number?
  • Video class: Express JS #9 - Middleware 21m
  • Exercise: In Express.js, what happens if a middleware does not call next() and also does not send a response?
  • Video class: Express JS #10 - Validation 31m
  • Exercise: When using express-validator, what should you do after defining validators like query('filter') or body('username') to actually return validation errors to the client?
  • Video class: Express JS #11 - Routers 19m
  • Exercise: What must you do after defining routes on an Express Router so the endpoints can be accessed?
  • Video class: Express JS #12 - Cookies 20m
  • Exercise: In Express, after enabling cookie-parser middleware, where do you read a signed cookie named hello?
  • Video class: Express JS #13 - Sessions Pt. 1 16m
  • Exercise: In Express, what is the main purpose of using sessions?
  • Video class: Express JS #14 - Sessions Pt. 2 22m
  • Exercise: In a simple session-based login flow, what indicates a user is authenticated on later requests?
  • Video class: Express JS #15 - Passport.js Authentication 37m
  • Exercise: In Passport's LocalStrategy verify callback, what should you pass to done() when authentication succeeds?
  • Video class: Express JS #16 - Databases with MongoDB 26m
  • Exercise: In Mongoose, what does setting unique: true on the username field help enforce?
  • Video class: Express JS #17 - Hashing Passwords 12m
  • Exercise: When validating a login attempt, which approach correctly checks a user’s plain-text password against the stored hashed password using bcrypt?
  • Video class: Express JS #18 - Session Stores 17m
  • Exercise: Why use a database-backed session store instead of the default in-memory store in Express sessions?
  • Video class: Express JS #19 - OAuth2 37m
  • Exercise: In an OAuth2 Passport strategy setup, what is the main purpose of the redirect/callback URL?
  • Video class: Express JS #20 - Unit Testing with Jest 1h24m
  • Exercise: When using ES modules (.mjs) in a Node.js project, what configuration helps Jest run the tests without converting the whole project to CommonJS?
  • Video class: Express JS - Integration 41m
  • Exercise: When writing end-to-end tests for an Express API with SuperTest, what approach ensures failed expectations correctly fail the test?

This free course includes:

7 hours and 57 minutes of online video course

Digital certificate of course completion (Free)

Exercises to train your knowledge

100% free, from content to certificate

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

More free courses at Backend development

Free Ebook + Audiobooks! Learn by listening or reading!

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate