Backend, APIs and Databases
Build a Node HTTP API from scratch, model data in SQL and MongoDB, and reason about transactions, indexes, caching and authentication so the endpoint you ship stays correct under load.
What you will be able to do
#- Explain how a Node process serves an HTTP request and where request data lives.
- Design REST resources and status codes that match the operation being performed.
- Write PostgreSQL DDL and queries using keys, joins, aggregates and NULL semantics correctly.
- Choose indexes from a query plan and describe the write cost of adding one.
- Use transactions and isolation reasoning to prevent lost updates and partial writes.
- Model documents in MongoDB and Mongoose, including validation and population trade-offs.
- Authenticate and authorize API requests without leaking secrets or allowing cross-tenant access.
- Add caching, structured logging and health checks to a production-shaped endpoint.
Prerequisites
#Lessons
#The Node.js runtime and module system
beginner · 45 minutes · 2 exercises
Describe the Node event loop phases and why blocking code stalls every request.
HTTP fundamentals for API authors
beginner · 45 minutes · 2 exercises
Map operations to HTTP methods and explain which are safe and idempotent.
A minimal Node HTTP server
beginner · 50 minutes · 2 exercises
Create a server with the built-in http module and route on method and URL.
Designing REST resources and routes
beginner · 45 minutes · 2 exercises
Name resources with nouns and model collections versus single items.
JSON APIs, validation and error handling
intermediate · 50 minutes · 2 exercises
Validate request bodies at the boundary before touching business logic.
Routing and middleware
intermediate · 50 minutes · 2 exercises
Explain a middleware chain and the role of next().
Configuration, secrets and twelve-factor discipline
intermediate · 45 minutes · 2 exercises
Keep configuration in the environment and out of source control.
Relational modeling: keys and relationships
intermediate · 55 minutes · 2 exercises
Design tables with primary keys and foreign keys that enforce referential integrity.
SQL SELECT, filtering, ordering and NULL
beginner · 50 minutes · 2 exercises
Write SELECT queries with WHERE, ORDER BY and LIMIT.
SQL joins and aggregation
intermediate · 55 minutes · 2 exercises
Combine tables with INNER and LEFT JOIN and explain the difference.
Normalization and deliberate denormalization
intermediate · 50 minutes · 2 exercises
Identify update, insert and delete anomalies in an unnormalized table.
Transactions, ACID and isolation
advanced · 60 minutes · 2 exercises
Wrap a multi-statement write in a transaction with commit and rollback.
Indexing and reading query plans
advanced · 60 minutes · 2 exercises
Explain how a B-tree index turns a scan into a seek.
Constraints, migrations and schema evolution
intermediate · 50 minutes · 2 exercises
Enforce data rules with NOT NULL, UNIQUE, CHECK and foreign keys.
The N plus one query problem
advanced · 55 minutes · 2 exercises
Detect an N plus one pattern from query logs or an ORM.
Connection pooling and lifecycle
advanced · 50 minutes · 2 exercises
Explain why opening a connection per request is expensive.
MongoDB documents and the document model
intermediate · 55 minutes · 2 exercises
Describe documents, collections and BSON types.
Mongoose schemas, validation and population
intermediate · 55 minutes · 2 exercises
Define a Mongoose schema with validation and defaults.
Data integrity across SQL and NoSQL
advanced · 50 minutes · 2 exercises
Compare transactional guarantees of relational and document databases.
Authentication and sessions for APIs
intermediate · 55 minutes · 2 exercises
Hash passwords with a slow, salted algorithm.
Authorization, RBAC and multi-tenancy
advanced · 55 minutes · 2 exercises
Enforce ownership and role checks on every resource access.
Caching layers and invalidation
advanced · 55 minutes · 2 exercises
Apply cache-aside with a TTL and explain the read path.
Logging, metrics and tracing for backends
advanced · 50 minutes · 2 exercises
Emit structured logs with a correlation id.
Capstone: a paginated, filtered, transactional endpoint
advanced · 70 minutes · 2 exercises
Combine validation, authorization, cursor pagination and an index in one endpoint.
Study journeys
#Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.
Backend and API engineer
Backend or full-stack API developer
Build a Node API over SQL and MongoDB, then operate and deliver it safely.
- JavaScript Foundationsskip by assessment
- Backend, APIs and Databasesyou are here
- DevOps Foundations
- CI/CD and Delivery Engineering
Next in this journey: DevOps Foundations
Advanced canonical resources
AI product engineer
Product engineer adding LLM features
Ship grounded, evaluated AI features on top of a real backend without leaking data or keys.
- JavaScript Foundationsskip by assessment
- AI Engineering
- Backend, APIs and Databasesyou are here