Skip to article content
FrontendXLearning path

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.

intermediate · 24 lessons · 48 exercises · about 1560 minutes

  • Predict
  • Explain
  • Implement
  • Debug
  • Test
  • Interview

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

#
  1. 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.

  2. HTTP fundamentals for API authors

    beginner · 45 minutes · 2 exercises

    Map operations to HTTP methods and explain which are safe and idempotent.

  3. 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.

  4. Designing REST resources and routes

    beginner · 45 minutes · 2 exercises

    Name resources with nouns and model collections versus single items.

  5. JSON APIs, validation and error handling

    intermediate · 50 minutes · 2 exercises

    Validate request bodies at the boundary before touching business logic.

  6. Routing and middleware

    intermediate · 50 minutes · 2 exercises

    Explain a middleware chain and the role of next().

  7. Configuration, secrets and twelve-factor discipline

    intermediate · 45 minutes · 2 exercises

    Keep configuration in the environment and out of source control.

  8. Relational modeling: keys and relationships

    intermediate · 55 minutes · 2 exercises

    Design tables with primary keys and foreign keys that enforce referential integrity.

  9. SQL SELECT, filtering, ordering and NULL

    beginner · 50 minutes · 2 exercises

    Write SELECT queries with WHERE, ORDER BY and LIMIT.

  10. SQL joins and aggregation

    intermediate · 55 minutes · 2 exercises

    Combine tables with INNER and LEFT JOIN and explain the difference.

  11. Normalization and deliberate denormalization

    intermediate · 50 minutes · 2 exercises

    Identify update, insert and delete anomalies in an unnormalized table.

  12. Transactions, ACID and isolation

    advanced · 60 minutes · 2 exercises

    Wrap a multi-statement write in a transaction with commit and rollback.

  13. Indexing and reading query plans

    advanced · 60 minutes · 2 exercises

    Explain how a B-tree index turns a scan into a seek.

  14. Constraints, migrations and schema evolution

    intermediate · 50 minutes · 2 exercises

    Enforce data rules with NOT NULL, UNIQUE, CHECK and foreign keys.

  15. The N plus one query problem

    advanced · 55 minutes · 2 exercises

    Detect an N plus one pattern from query logs or an ORM.

  16. Connection pooling and lifecycle

    advanced · 50 minutes · 2 exercises

    Explain why opening a connection per request is expensive.

  17. MongoDB documents and the document model

    intermediate · 55 minutes · 2 exercises

    Describe documents, collections and BSON types.

  18. Mongoose schemas, validation and population

    intermediate · 55 minutes · 2 exercises

    Define a Mongoose schema with validation and defaults.

  19. Data integrity across SQL and NoSQL

    advanced · 50 minutes · 2 exercises

    Compare transactional guarantees of relational and document databases.

  20. Authentication and sessions for APIs

    intermediate · 55 minutes · 2 exercises

    Hash passwords with a slow, salted algorithm.

  21. Authorization, RBAC and multi-tenancy

    advanced · 55 minutes · 2 exercises

    Enforce ownership and role checks on every resource access.

  22. Caching layers and invalidation

    advanced · 55 minutes · 2 exercises

    Apply cache-aside with a TTL and explain the read path.

  23. Logging, metrics and tracing for backends

    advanced · 50 minutes · 2 exercises

    Emit structured logs with a correlation id.

  24. 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.

© 2026 FrontendX. All rights reserved.