Find the perfect coding resourcesLearn more

Learn Express.js

ScrimbaScrimba
Recommended
Meet Your Instructor
Tom Chant avatar

Tom Chant

Instructor

Tutor at Scrimba with experience since 2004. Specializes in JavaScript, Node.js, and making coding accessible and pain-free for learners.

3h 48m

Format

Interactive coding

Free

What You'll Learn

Serve static and dynamic pages

Craft complex routing systems

Build middleware

Handle file uploads and processing

Work with Event Emitters and Server-Sent Events

Overview

Build fast, flexible backends with Express.js Express is the most popular Node.js framework—and for good reason. It streamlines backend development so you can build powerful APIs and dynamic server-side features with ease. In this project-based course, you'll learn how to set up Express, design scalable routes, handle data, and implement real-time functionality. Express is a minimalist framework that runs on top of Node.js. While Node lets you run JavaScript outside the browser, Express gives you a toolkit to build web servers, APIs, and dynamic apps with ease. It takes care of the repetitive parts—like routing, parsing, and middleware—so you can focus on building features that matter. This course is project-based, so you'll learn by building two exciting apps: Startup Planet - a REST API packed with detailed information about startups from around the world, and Spiral Sounds - an indie rock vinyl store where users can browse, order, and get real-time updates.

Table of Contents
1
Learn Express.js2:36
2
Startup Planet Intro2:55
3
Setting Things Up6:45
4
A Basic Server3:50
5
Aside: The Request/Response Cycle2:18
6
Aside: Sending a Response5:30
7
Serving Data2:18
8
Aside: Query Parameters3:29
9
Filtering by Query Params7:37
10
Aside: Path Parameters4:02
11
Add Path Parameters 14:03
12
Path Params 23:37
13
express.Router()5:49
14
Modularise The Code4:34
15
Route Not Found3:22
16
CORS2:50
17
Wrapping Things Up1:39
18
Intro1:52
19
Aside: Middleware and express.static()7:49
20
Serve the Frontend Files1:04
21
Setting up the Routes6:24
22
Aside: Creating a DB Table5:11
23
Setting up the Database5:01
24
sqlite3 Methods Overview2:41
25
Aside: Adding Data to the Database5:25
26
seedTable.js3:48
27
Aside: Getting our Data3:13
28
Populate the Dropdown5:20
29
Getting All Products2:42
30
Wire Up the Dropdown2:21
31
Add Search Functionality3:40
32
Outro1:09
33
Intro2:44
34
Create a users table2:23
35
The /register Route4:50
36
Aside: Validation5:16
37
Validate the User7:01
38
Add user to DB6:05
39
Aside: Hash & bcrypt5:09
40
bcryptjs Demo5:23
41
Hash the password4:12
42
Aside: express-session6:18
43
Add express-session3:45
44
Display a User's Name5:30
45
Login8:15
46
Add Logout Functionality3:25
47
Adding Cart Functionality6:40
48
Adding to cart_table4:55
49
The Cart Count3:18
50
Cart Page Challenge 15:22
51
Cart Page Challenge 24:45
52
Cart Page Challenge 33:58
53
Aside: Protected Routes4:32
54
Protecting Cart Routes5:15
55
Outro (new)2:10

Share Your Experience

Sign in to leave a review and help others

No reviews yet. Be the first to review!