Skip to main content
CF

Node.js API Masterclass With Express & MongoDB

12h 4m 42s
English
Paid

Build a real API step by step with Node, Express, and MongoDB. You start with an empty folder and work toward a clean, tested, and deployed API. You learn core skills through a clear project: a bootcamp directory app.

What You Will Learn

You work through each part of the API in small pieces. Each topic builds on the last so you see how the full system fits together.

Core HTTP and API Skills

  • HTTP basics and the request/response cycle
  • REST design and resource paths
  • Postman for testing routes

Server With Express

  • Route setup and controller methods
  • Custom middleware
  • Error handling patterns

Data With MongoDB

  • Atlas and Compass setup
  • Mongoose models and schema design
  • Model links and relationships
  • Advanced queries like filter and pagination
  • Aggregation pipelines

Extra Features

  • GeoJSON and geospatial index work
  • Geocoding lookups
  • Photo upload
  • Seeding data from JSON

Auth and Security

  • JWT and cookie-based login
  • User roles and access checks
  • Password hashing and reset tokens
  • Guarding against NoSQL injection and XSS
  • Rate limiting

Docs and Deployment

  • Clear API documentation
  • Deploy with PM2 and NGINX
  • Set up SSL

Requirements

  • Modern JavaScript (ES6)
  • Basic programming concepts
  • Some Node knowledge helps

Who This Course Is For

  • People who want to learn backend web work with Node
  • Frontend devs who want full‑stack skills

About the Authors

Brad Traversy

Brad Traversy thumbnail

Brad Traversy is a US developer behind Traversy Media — one of the largest independent web-development YouTube channels, with millions of subscribers and one of the most-viewed introductory tutorial libraries on the platform. He has been publishing daily-or-near-daily web development content continuously for nearly a decade and has anchored a generation of self-taught developers' first exposure to HTML, CSS, JavaScript, and the modern framework landscape.

The course catalog (sold via Udemy and the standalone Traversy platform) covers the full web-development stack: HTML and CSS fundamentals, JavaScript, React (including Next.js), Vue, Node.js, Express, MongoDB, full-stack MERN applications, Tailwind CSS, modern CSS layout, and the surrounding tooling. Brad's teaching style is calm, patient, and deliberately accessible to absolute beginners.

The CourseFlix listing under this source carries over 17 Brad Traversy courses spanning that range. Material is paid and aimed primarily at self-taught developers building real proficiency with web development from a clean start.

Udemy

Udemy thumbnail

Udemy is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.

Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.

Watch Online 75 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 75 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Course Introduction
All Course Lessons (75)
#Lesson TitleDurationAccess
1
Course Introduction Demo
03:36
2
A Look At The Project
06:38
3
Environment Setup
05:43
4
HTTP & the Node Http Module
10:04
5
Installing Nodemon
03:56
6
Responding With Data
08:04
7
HTTP Status Codes
07:40
8
Sending Data To The Server
05:35
9
HTTP Methods & RESTful APIs
12:45
10
Project Specs & Resources
06:47
11
Basic Express Server, dotenv & Git
10:10
12
Creating Routes & Responses In Express
10:13
13
Using The Express Router
05:01
14
Creating Controller Methods
09:58
15
Intro To Middleware
10:41
16
Postman Environment & Collections
08:52
17
MongoDB Atlas & Compass Setup
08:56
18
Connecting To The Database With Mongoose
11:58
19
Colors In The Console
02:49
20
Creating Our First Model
15:23
21
Create Bootcamp - POST
10:32
22
Fetching Bootcamps - GET
05:30
23
Updating & Deleting Bootcamps - PUT & DELETE
08:23
24
Error Handler Middleware
05:44
25
Custom ErrorResponse Class
05:34
26
Mongoose Error Handling [1]
07:25
27
Mongoose Error Handling [2]
09:13
28
Async/Await Middleware
06:46
29
Mongoose Middleware & Slugify
07:52
30
GeoJSON Location & Geocoder Hook - MapQuest API
15:39
31
Database Seeder For Bootcamps
10:23
32
Geospatial Query - Get Bootcamps Within Radius
14:08
33
Advanced Filtering
12:37
34
Select & Sorting
12:49
35
Adding Pagination
11:31
36
Course Model & Seeding
09:03
37
Course Routes & Controller
12:21
38
Populate, Virtuals & Cascade Delete
11:47
39
Single Course & Add Course
11:57
40
Update & Delete Course
07:39
41
Aggregate - Calculating The Average Course Cost
16:15
42
Photo Upload For Bootcamp
23:13
43
Advanced Results Middleware
12:15
44
User Model
11:35
45
User Register & Encrypting Passwords
09:55
46
Sign & Get JSON Web Token
09:10
47
User Login
12:40
48
Sending JWT In a Cookie
09:56
49
Auth Protect Middleware
16:47
50
Storing The Token In Postman
05:19
51
Role Authorization
07:08
52
Bootcamp & User Relationship
10:42
53
Bootcamp Ownership
08:33
54
Course Ownership
07:25
55
Forgot Password - Generate Token
11:35
56
Forgot Password - Send Email
16:17
57
Reset Password
09:42
58
Update User Details
10:44
59
Admin Users CRUD
18:38
60
Review Model & Get Reviews
10:52
61
Get Single Review & Update Seeder
09:03
62
Add Review For Bootcamp
10:28
63
Aggregate - Calculate Average Rating
07:30
64
Update & Delete Reviews
12:52
65
Logout To Clear Token Cookie
07:36
66
Prevent NoSQL Injection & Sanitize Data
05:19
67
XSS Protection & Security Headers
07:04
68
Rate Limiting, HPP & CORS
07:58
69
Documentation With Postman & Docgen
12:13
70
Digital Ocean Droplet & Server Log In
05:51
71
Prepare & Push To Github
06:24
72
Clone Repo On Server
08:42
73
PM2 Process Manager Setup
05:45
74
NGINX Reverse Proxy Setup
05:55
75
Domain, SSL & Wrap Up
11:39
Unlock unlimited learning

Get instant access to all 74 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Course content

75 lessons · 12h 4m 42s
Show all 75 lessons
  1. 1 Course Introduction 03:36
  2. 2 A Look At The Project 06:38
  3. 3 Environment Setup 05:43
  4. 4 HTTP & the Node Http Module 10:04
  5. 5 Installing Nodemon 03:56
  6. 6 Responding With Data 08:04
  7. 7 HTTP Status Codes 07:40
  8. 8 Sending Data To The Server 05:35
  9. 9 HTTP Methods & RESTful APIs 12:45
  10. 10 Project Specs & Resources 06:47
  11. 11 Basic Express Server, dotenv & Git 10:10
  12. 12 Creating Routes & Responses In Express 10:13
  13. 13 Using The Express Router 05:01
  14. 14 Creating Controller Methods 09:58
  15. 15 Intro To Middleware 10:41
  16. 16 Postman Environment & Collections 08:52
  17. 17 MongoDB Atlas & Compass Setup 08:56
  18. 18 Connecting To The Database With Mongoose 11:58
  19. 19 Colors In The Console 02:49
  20. 20 Creating Our First Model 15:23
  21. 21 Create Bootcamp - POST 10:32
  22. 22 Fetching Bootcamps - GET 05:30
  23. 23 Updating & Deleting Bootcamps - PUT & DELETE 08:23
  24. 24 Error Handler Middleware 05:44
  25. 25 Custom ErrorResponse Class 05:34
  26. 26 Mongoose Error Handling [1] 07:25
  27. 27 Mongoose Error Handling [2] 09:13
  28. 28 Async/Await Middleware 06:46
  29. 29 Mongoose Middleware & Slugify 07:52
  30. 30 GeoJSON Location & Geocoder Hook - MapQuest API 15:39
  31. 31 Database Seeder For Bootcamps 10:23
  32. 32 Geospatial Query - Get Bootcamps Within Radius 14:08
  33. 33 Advanced Filtering 12:37
  34. 34 Select & Sorting 12:49
  35. 35 Adding Pagination 11:31
  36. 36 Course Model & Seeding 09:03
  37. 37 Course Routes & Controller 12:21
  38. 38 Populate, Virtuals & Cascade Delete 11:47
  39. 39 Single Course & Add Course 11:57
  40. 40 Update & Delete Course 07:39
  41. 41 Aggregate - Calculating The Average Course Cost 16:15
  42. 42 Photo Upload For Bootcamp 23:13
  43. 43 Advanced Results Middleware 12:15
  44. 44 User Model 11:35
  45. 45 User Register & Encrypting Passwords 09:55
  46. 46 Sign & Get JSON Web Token 09:10
  47. 47 User Login 12:40
  48. 48 Sending JWT In a Cookie 09:56
  49. 49 Auth Protect Middleware 16:47
  50. 50 Storing The Token In Postman 05:19
  51. 51 Role Authorization 07:08
  52. 52 Bootcamp & User Relationship 10:42
  53. 53 Bootcamp Ownership 08:33
  54. 54 Course Ownership 07:25
  55. 55 Forgot Password - Generate Token 11:35
  56. 56 Forgot Password - Send Email 16:17
  57. 57 Reset Password 09:42
  58. 58 Update User Details 10:44
  59. 59 Admin Users CRUD 18:38
  60. 60 Review Model & Get Reviews 10:52
  61. 61 Get Single Review & Update Seeder 09:03
  62. 62 Add Review For Bootcamp 10:28
  63. 63 Aggregate - Calculate Average Rating 07:30
  64. 64 Update & Delete Reviews 12:52
  65. 65 Logout To Clear Token Cookie 07:36
  66. 66 Prevent NoSQL Injection & Sanitize Data 05:19
  67. 67 XSS Protection & Security Headers 07:04
  68. 68 Rate Limiting, HPP & CORS 07:58
  69. 69 Documentation With Postman & Docgen 12:13
  70. 70 Digital Ocean Droplet & Server Log In 05:51
  71. 71 Prepare & Push To Github 06:24
  72. 72 Clone Repo On Server 08:42
  73. 73 PM2 Process Manager Setup 05:45
  74. 74 NGINX Reverse Proxy Setup 05:55
  75. 75 Domain, SSL & Wrap Up 11:39

Related courses

Frequently asked questions

What is Node.js API Masterclass With Express & MongoDB about?
Build a real API step by step with Node, Express, and MongoDB. You start with an empty folder and work toward a clean, tested, and deployed API. You learn core skills through a clear project: a bootcamp directory app. What You Will Learn…
Who teaches Node.js API Masterclass With Express & MongoDB?
Node.js API Masterclass With Express & MongoDB is taught by Brad Traversy, Udemy. You can find more courses by these instructors on the corresponding source pages.
How long is Node.js API Masterclass With Express & MongoDB?
Node.js API Masterclass With Express & MongoDB contains 75 lessons with a total runtime of 12 hours 4 minutes. All lessons are available to watch online at your own pace.
Is Node.js API Masterclass With Express & MongoDB free to watch?
Node.js API Masterclass With Express & MongoDB is part of CourseFlix's premium catalog. A CourseFlix subscription unlocks the full video player; the course description, table of contents, and preview information are available to everyone.
Where can I watch Node.js API Masterclass With Express & MongoDB online?
Node.js API Masterclass With Express & MongoDB is available to watch online on CourseFlix at https://courseflix.net/course/node-js-api-masterclass-with-express-mongodb. The page hosts every lesson with the integrated video player; no download is required.