AI Instructor Live Labs Included

Node.js and Express

Build production REST APIs with Node.js and Express — routing, middleware, SQLite, JWT authentication, and error handling.

Intermediate
12h 40m
14 Lessons
JS-300
Node.js and Express Badge

View badge details

About This Course

Build real backend APIs with Node.js and Express. Learn the Node.js runtime, Express routing and middleware, database integration with SQLite, request validation with Zod, JWT authentication with bcrypt, and centralized error handling. The capstone builds the complete ByteForge task API. Requires JavaScript and TypeScript knowledge. Course 4 of 6 in the JavaScript Learning Path.

Course Curriculum

14 Lessons
01
AI Lesson
AI Lesson

Node.js Runtime and npm

30m
02
Lab Exercise
Lab Exercise

Node.js Runtime and npm - Lab Exercises

1h 15m 1 Exercises

What Node.js is (V8 engine, event loop, single-threaded), global objects (process, __dirname, __filename), CommonJS vs ES modules in Node, npm init/install/scripts, package.json and package-lock.json, fs/path/os core modules

Node.js Runtime and npm Package Management Node.js Runtime and npm Package Management ~30 min
03
AI Lesson
AI Lesson

Express Basics and Routing

35m
04
Lab Exercise
Lab Exercise

Express Basics and Routing - Lab Exercises

1h 15m 1 Exercises

Creating an Express app, route methods (get/post/put/delete), route parameters and query strings, request and response objects, sending JSON responses, route organization with express.Router

Express Basics and Routing - Building a RESTful API Server Express Basics and Routing - Building a RESTful API Server ~30 min
05
AI Lesson
AI Lesson

Middleware and Request Processing

35m
06
Lab Exercise
Lab Exercise

Middleware and Request Processing - Lab Exercises

1h 15m 1 Exercises

What middleware is (req/res/next), built-in middleware (json/urlencoded/static), custom middleware (logging/timing/auth), error handling middleware, middleware ordering matters, third-party middleware (cors/helmet/morgan)

Express Middleware: Understanding the Request Pipeline Express Middleware: Understanding the Request Pipeline ~30 min
07
AI Lesson
AI Lesson

Database Integration with SQLite

35m
08
Lab Exercise
Lab Exercise

Database Integration with SQLite - Lab Exercises

1h 15m 1 Exercises

Why SQLite for development, better-sqlite3 package, creating tables and schema, CRUD operations (prepare/run/get/all), parameterized queries (SQL injection prevention), transactions, database initialization on startup

Exercise 1 Exercise 1 ~30 min
09
AI Lesson
AI Lesson

Request Validation and Error Handling

35m
10
Lab Exercise
Lab Exercise

Request Validation and Error Handling - Lab Exercises

1h 15m 1 Exercises

Validating request bodies with zod (or joi), schema composition, custom error classes, centralized error handling middleware, async error wrapper, HTTP status codes and when to use each, structured error responses

Request Validation and Error Handling in Express.js Request Validation and Error Handling in Express.js ~30 min
11
AI Lesson
AI Lesson

Authentication with JWT

35m
12
Lab Exercise
Lab Exercise

Authentication with JWT - Lab Exercises

1h 15m 1 Exercises

Authentication vs authorization, password hashing with bcrypt, JWT structure (header.payload.signature), signing and verifying tokens with jsonwebtoken, protecting routes with auth middleware, refresh tokens concept, role-based access control

Authentication with JWT in Node.js and Express Authentication with JWT in Node.js and Express ~30 min
13
AI Lesson
AI Lesson

Capstone Briefing Build a REST API

30m
14
Lab Exercise
Lab Exercise

Capstone Briefing Build a REST API - Lab Exercises

1h 15m 1 Exercises

Capstone: build complete ByteForge task API with Express, SQLite database, zod validation, JWT auth, role-based access, error handling, and organized route structure

Capstone: Build a Complete REST API with Express and MongoDB Capstone: Build a Complete REST API with Express and MongoDB ~30 min

This course includes:

  • 24/7 AI Instructor Support
  • Live Lab Environments
  • 7 Hands-on Lessons
  • Completion Badge
Node.js and Express Badge

Earn Your Badge

Complete all lessons to unlock the Node.js and Express achievement badge.

Category
Skill Level Intermediate
Total Duration 12h 40m
Node.js and Express Badge
Achievement Badge

Node.js and Express

Demonstrates proficiency in building REST APIs with Node.js and Express — routing, middleware, database, JWT auth.

Course Node.js and Express

Skills You'll Earn

Node.js Express REST API SQLite JWT Middleware

Complete all lessons in this course to earn this badge