Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Build an API with Node and Express
Understanding APIs
What is a REST API?
Introduction to APIs (7:52)
Layered Architecture and APIs (8:40)
Getting Started
Setup Steps (10:06)
Creating Our First Express Server (12:02)
Preparing For Our Project (10:28)
What Are Requests and Responses? (7:03)
Section summary
Basics of Routing
Intro To Routing (11:30)
GET Requests (10:17)
Using Path Parameters (8:25)
POST and the Request Body (12:09)
Using PUT and Updating (9:28)
Using PATCH (5:53)
The DELETE Verb (3:05)
Section summary
Working With Query Parameters
Setting Up (8:33)
Query Parameters Part 1 (11:31)
Query Parameters Part 2 (5:34)
Query Parameters Part 3 (7:01)
Section summary
Middleware and Validation
Intro to Middleware (5:53)
Basics of Middleware (6:13)
Validate Query Parameters (12:34)
Validate the Request Body (8:14)
Express-Validation Documentation (3:43)
Custom Validation (4:36)
Adding an API Key (7:57)
Section summary
Error Handling
Refactoring Our Code - N Tier Architecture (12:58)
Try Catch Blocks (6:53)
Consolidating Errors (7:17)
Custom Error Handling (10:43)
Handling Validation Errors (10:15)
Section summary
MongoDB and Mongoose
Signing Up With Mongo Atlas (3:16)
Connecting to MongoDB (11:40)
Creating Our First Schema (6:26)
Using Mongoose in the Repository (12:21)
Updating Our Controller Code (9:30)
Section summary
Automated Testing
33-SetupJest (7:01)
34-MongoInMemory (8:04)
35-OurFirstTest (5:18)
36-Mocks (13:44)
Section summary
Deploy Your API To Firebase
Initializing a Firebase Project (5:33)
Getting Started With Firebase (4:22)
Migrating Our API to Firebase (5:09)
Setting Up Firebase Config (4:46)
Deploying To Firebase (9:13)
Teach online with
Connecting to MongoDB
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock