← All courses
Development

Building REST APIs with Node.js

Design, build and test a clean JSON API with Express, validation and proper errors.

77 learners

Created by Maya Fernandes · Updated October 22, 2026

  • Intermediate
  • 42 min total
  • 9 lessons
  • Self-paced

What you’ll learn

  • Design resource-based REST endpoints with sensible URLs and status codes
  • Build an Express server with routing, middleware and JSON responses
  • Validate input and return helpful error messages
  • Write automated tests for your endpoints
  • Structure a Node project so it stays maintainable as it grows

Course content

3 sections · 9 lessons · 42 min

How REST APIs work3 lessons · 13 min
  • Requests, responses and status codesVideo · 11 min
  • Designing resource URLsReading · 1 min
  • Choosing the right status codeReading · 1 min
Building the API3 lessons · 17 min
  • Your first Express serverVideo · 15 min
  • Middleware, the request pipelineReading · 1 min
  • Validating inputReading · 1 min
Errors, tests and structure3 lessons · 12 min
  • Centralised error handlingVideo · 10 min
  • Testing endpointsReading · 1 min
  • Structuring a growing projectReading · 1 min

Requirements

  • Comfortable with JavaScript basics (functions, objects, async/await)
  • Node.js 20 or later installed

Description

Learn how backend APIs are put together by building one: a small but realistic tasks API with routes, validation, error handling and tests. You'll learn the conventions that make an API pleasant to use, from resource naming to status codes. The course assumes you know basic JavaScript. Everything else, from installing Node to writing your first test, is covered step by step.

Instructor

Maya Fernandes

Senior frontend engineer · 11 years building web apps

  • 4.5 instructor rating
  • 40 reviews
  • 94 learners
  • 2 courses

I've spent over a decade building web products for startups and larger teams, most recently leading a frontend platform group. I teach the way I wish I'd been taught: the fundamentals first, real examples, and small exercises that build into something you can keep.

4.6 course rating · 23 reviews

5 ★70%
4 ★17%
3 ★13%
2 ★0%
1 ★0%
  • Lucia Hassan · Oct 22, 2026

    Clear explanations and practical examples throughout.

  • Ethan Murphy · Oct 22, 2026

    Practical from the very first lesson.

  • Ananya Costa · Oct 22, 2026

    Clear explanations and practical examples throughout.

  • Kavya Khan · Oct 22, 2026

    Clear and friendly teaching style.

  • Fatima Sharma · Oct 22, 2026

    The instructor explains things really clearly.

  • Chloe Brown · Oct 22, 2026

    One of the best short courses I've taken.

  • Elena Larsen · Oct 22, 2026

    One of the best short courses I've taken.

  • Sneha Smith · Oct 22, 2026

    Decent introduction, but I already knew most of it.

  • Sam Kapoor · Oct 22, 2026

    Helpful content. Would love a follow-up course.

  • Ingrid Kim · Oct 22, 2026

    Great value. I applied it at work the next day.

  • Mateo Novak · Oct 22, 2026

    Short lessons that fit around work. Finished it in a week.

  • Ishaan Wang · Oct 22, 2026

    One of the best short courses I've taken.

  • Hannah Nair · Oct 22, 2026

    Short lessons that fit around work. Finished it in a week.

  • Nisha Pillai · Oct 22, 2026

    Decent introduction, but I already knew most of it.

  • Emma Martin · Oct 22, 2026

    Clear explanations and practical examples throughout.

  • Tara Iyer · Oct 22, 2026

    Short lessons that fit around work. Finished it in a week.

  • Adaeze Chen · Oct 22, 2026

    Decent introduction, but I already knew most of it.

  • Karan Hassan · Oct 22, 2026

    Good course overall. A couple of lessons could go deeper.

  • Ayesha Joshi · Oct 22, 2026

    Clear explanations and practical examples throughout.

  • Pablo Murphy · Oct 22, 2026

    Exactly the level of detail I needed coming from frontend work.

  • Zara Reddy · Oct 22, 2026

    Solid and practical. Would love a follow-up on authentication.

  • Kenji Khan · Oct 22, 2026

    The section on status codes alone was worth it. Our team now follows these conventions.

  • Aarav Sharma · Oct 22, 2026

    Tests from day one, finally. Clear explanations of middleware.

Building REST APIs with Node.js · Creator Center