LEVEL 7 · BACKEND ENGINEERING
Course Core
Backend engineering
How backends work, framework-free: HTTP in depth, typed Node.js, the BookStore API in TypeScript with PostgreSQL and authentication, layered API design, testing strategies, and the building blocks every backend needs: caches, queues and file storage.
0 of 15 lessons done
When you finish, you can
- Read and write raw HTTP and explain every part of a request and response
- Build a typed HTTP API with controllers, services, repositories and DTOs
- Store data in PostgreSQL with parameterized SQL
- Test a backend at the unit, integration and end-to-end level
- Explain when to add a cache, a queue or object storage, and what each costs
You build: The BookStore API: a TypeScript backend with PostgreSQL, authentication and tests, built without a framework
MODULE 1
HTTP and REST
- 1HTTP in depthSee the exact bytes of an HTTP request and response, then learn the headers, content types, cookies, methods and status codes every backend relies on.40 min
- 2Designing a REST APIDesign the Task API as a REST API: resource URLs, a written contract, filtering and sorting, offset and cursor pages, versions and one error format.40 min
MODULE 2
Databases and SQL
- 3How databases workWhy a backend needs a database, and how tables, keys, relationships, constraints, indexes, transactions and migrations work, on real PostgreSQL in Node.js.45 min
- 4SQL with PostgreSQLRun PostgreSQL with an installer or Docker, use psql, and write everyday SQL: insert, select, update, delete, and placeholders that stop SQL injection.45 min
- 5Joins, grouping and transactionsJoin tables, summarise them with group by and having, nest queries, run transactions by hand, measure with explain analyze, and connect Node.js to PostgreSQL.45 min
MODULE 4
TypeScript on the server
- 7TypeScript on Node.jsType Node.js with @types/node: typed env vars, files, HTTP, buffers, streams, events, child processes and signals, so the compiler catches server bugs early.50 min
- 8"BookStore API: HTTP and routing"Start a TypeScript backend with no framework: a project folder, checked configuration, a typed router, JSON helpers and error responses for books and authors.45 min
- 9"BookStore API: validation and PostgreSQL"Check BookStore request bodies with type guards, move the data into PostgreSQL, write repositories with parameterized SQL, and map errors to 400, 404 and 409.50 min
- 10"BookStore API: authentication and tests"Add users to the BookStore: scrypt password hashes, signed log-in tokens, protected order routes and node:test tests, then an honest review of what still hurts.50 min
- 11Type-safe API layersRefactor the BookStore into typed layers: entities, DTOs, mappers, controllers, services and repositories, with typed errors, cursor paging and role checks.60 min
MODULE 5
Testing strategies
MODULE 6
Backend building blocks
- 13CachingBuild a cache from scratch: cache-aside with TTL, invalidation on writes, stampede protection, stale-while-revalidate, hit-rate metrics and what to cache.50 min
- 14Queues and background jobsMove slow, fragile work out of the request: a job queue with retries, backoff, dead letters, at-least-once delivery, idempotent consumers and an outbox.55 min
- 15File uploads and storageAccept uploads safely with node:http: stream multipart bodies to disk, enforce size limits, sniff real content types and serve files through signed URLs.55 min
Course checkpoint
Prove you can move on. The checkpoint picks 20 questions at random from every lesson in this course. Get 16 right to pass. Your result is saved in this browser only.