Skip to content
TeachTrails

Free course · 9 lessons · first 2 open, free enrollment for the rest

Learn backend by building one real API

From "what is an API?" to a working To-Do backend with login and a real database. Plain English, one example from start to finish, and code we actually ran.

  • Node.js-style backend with Express 5
  • TypeScript from the first line
  • PostgreSQL + Prisma, with migrations
  • Signup, login and protected routes (JWT)
  • Automated tests with bun test + Supertest
  • A "memorize this" box in every lesson
Node.js Backend with Express: free course covering JavaScript, TypeScript, Express, REST APIs, PostgreSQL, Prisma, JWT auth and Bun

Why it works

Built so it actually sticks

One example, start to finish

Every lesson adds a piece to the same To-Do API, so you always know why you're learning something.

Tested, copy-paste code

We ran every command and every file before publishing: Bun 1.4, Express 5, Prisma 7, PostgreSQL 18.

Know what to remember

Each lesson ends with the few facts worth memorizing, plus a quick quiz to check yourself.

The roadmap

Follow the trail, one part at a time

Each part builds on the one before. Your progress is saved in this browser, so you can pick up where you left off.

0 of 9 parts completed

Start the course
  1. 1
    Part 1·8 minFree previewStart here

    What Is a Backend

    What a backend and an API are, in plain English: requests, responses, JSON, HTTP methods and status codes, using one simple To-Do app as the example.

  2. 2
    Part 2·7 minFree preview

    Why Use TypeScript Instead of JavaScript for Backend

    Why backend developers pick TypeScript over plain JavaScript: real bugs it catches before your code runs, the 5 type basics you need, and how it fits Express.

  3. 3
    Part 3·9 min Enroll to unlock

    Express with Bun and TypeScript

    Install Bun, create a TypeScript project, add Express and build your first working API (a mini To-Do list) in about 15 minutes. Every command tested.

  4. 4
    Part 4·9 min Enroll to unlock

    Express Folder Structure

    The best-practice folder structure for an Express + TypeScript API: routes, controllers, services, middleware and config, explained with one To-Do app.

  5. 5
    Part 5·11 min Enroll to unlock

    Prisma with PostgreSQL

    Connect an Express API to PostgreSQL with Prisma 7: install, write the schema, run migrations to create tables, and read and write data. Tested step by step.

  6. 6
    Part 6·10 min Enroll to unlock

    Signup and Login API in Express

    Build register and login APIs in Express and TypeScript: hash passwords with bcrypt, issue JWT tokens, and protect routes with an auth middleware. Tested code.

  7. 7
    Part 7·11 min Enroll to unlock

    CRUD REST API in Express and TypeScript

    Write the 5 APIs every app needs: list with pagination, get one, create, update and delete, with validation and the right status codes. Real tested To-Do API.

  8. 8
    Part 8·14 min Enroll to unlock

    How to Test an Express API with Bun Test and Supertest

    Test a Node.js Express API step by step: unit tests, API tests with Supertest, a separate test database, mocking, coverage and CI. All 22 tests run and pass.

  9. 9
    Part 9·9 min Enroll to unlock

    Express API Best Practices

    The Express and Node.js API best practices that matter: validation, errors, security, status codes and structure, as a checklist with a one-page cheat sheet.

  10. 10
    File uploadsComing soon
  11. 11
    Deploy your APIComing soon
  12. 12
    Docker for backend developersComing soon

Who it's for

Made for you if…

Students and freshers

You know basic programming and want to build your first real backend for projects and interviews.

Frontend developers

You build screens and want to understand (and write) the API behind them.

Switching to tech

You want a clear, no-jargon path to backend development without a paid bootcamp.

FAQ

Questions students ask

Is this Node.js course really free?

Yes, completely free. The first two lessons are open to everyone; sign in with Google, GitHub or email and enroll (also free) to read the rest. Enrolling also saves your progress across devices.

What do I need before starting?

Basic programming: variables, functions, if/else, arrays and objects in any language. No backend or database experience needed.

Why Bun instead of npm?

Bun installs packages, runs TypeScript directly and restarts on save, all in one tool, so there's almost no setup. The code is standard Node.js-style Express; each lesson shows the npm commands too.

Which database and ORM do you use?

PostgreSQL with Prisma 7, the most popular combination for TypeScript backends. You'll write the schema, run migrations and query data with full autocomplete.

Will I have a finished project?

Yes: a To-Do REST API with signup, login, protected routes, validation, pagination, error handling, a real database and 22 automated tests that run on every push, in a clean folder structure you can reuse.

Start with Lesson 1: What is a backend?

About 1 hour 28 minutes for the whole course. Your progress is saved in this browser as you go.

Get new Development lessons by email

Free. No spam. Unsubscribe any time. See our privacy policy.