Building APIs with Node.js & Express
Go from consuming APIs to building them. Learn how HTTP works from the wire up, then build JSON APIs with Node.js and Express: routes, middleware, controllers, and a full CRUD project.
Start learning
Build real skills one lesson at a time
Explore the complete curriculum below, then start with the lesson that is right for you.
About this course
Most developers start by consuming APIs. This course takes you to the other side of the request and teaches you how to build them.
You'll start with HTTP itself, build a server with Node.js, and then use Express to create a complete CRUD API backed by a JSON file.
What you'll learn
- How HTTP requests and responses work
- Building a server with Node.js and the built-in http module
- Creating Express routes with params and query strings
- Handling POST, PUT, and DELETE requests
- Using middleware for logging, access control, and errors
- Organizing an API with routers and controllers
- Reading and writing JSON files for data persistence
- Building a complete CRUD API
Prerequisites
- Finished JavaScript Basics (opens in a new tab) or comfortable with the language fundamentals
- Finished Intermediate JavaScript (opens in a new tab) or comfortable with fetch, promises, and async/await
Course instructor
Brad Traversy
Founder of Traversy Media and an educator known for practical, project-focused web development courses.
Course content
Keep learning
More programming courses
Beginner course
Learn SQL
Use SQL to query a real database. Learn SELECT, filtering, sorting, grouping, joins, and how to create and change tables.
View courseBeginner course
Python for Beginners
Go from zero to writing real Python programs in the browser. Build up the core language, variables, types, control flow, lists, loops, and functions, with instant feedback and no setup required.
View courseIntermediate course
Intermediate Python
Write interactive Python programs that ask questions, clean up text, handle errors, process data files, call real APIs, and model games with classes.
View course

