Đi tới nội dung

Backend · Backend Developer · Production Backend Path

NestJS Roadmap

Backend track để xây API, authentication, database workflows, services, queues và production-ready architecture theo progression từ core NestJS tới advanced backend patterns.

  • 11chặng học
  • 66trọng tâm
  • 20bài thực hành
  • ~11tuần
Hệ sinh thái
  • NestJS
  • Node.js
  • TypeScript
  • Express.js
  • Prisma
  • PostgreSQL
  1. Dễ vào01–04
  2. Xây nền05–08
  3. Nâng cao09–11

Các chặng học

  1. 01

    Dễ vào

    Chặng 01

    Node.js + TypeScript Foundation

    Xây nền với runtime Node.js, async flow, module system, TypeScript types, interfaces, classes và tư duy backend bằng JavaScript hiện đại để chuẩn bị cho NestJS.

    Node.jsNode.jsTypeScriptTypeScriptAsync
  2. 02

    Chặng 02

    NestJS Core Architecture

    Học thật chắc Modules, Controllers, Providers, Services, Dependency Injection, DTO, feature/shared/config module và project structure. Practice: Todo API, Users module, Posts module và refactor controller logic vào service.

    ModulesControllersDependency Injection
  3. 03

    Chặng 03

    Validation, Pipes & Error Handling

    Bao phủ DTO validation, class-validator, class-transformer, ValidationPipe, ParseIntPipe, custom pipe, exception filters, error format và global error handling. Practice: validate create user DTO, custom validation pipe và standardize API errors.

    ValidationPipeclass-validatorException Filters
  4. 04

    Chặng 04

    Request Lifecycle & Cross-cutting Concerns

    Đi qua middleware, guards, interceptors, pipes, filters, ExecutionContext, custom decorators và setup ở global/controller/route level. Practice: logging middleware, response transform interceptor, CurrentUser decorator, role guard và request timing interceptor.

    GuardsInterceptorsExecutionContext
  5. 05

    Xây nền

    Chặng 05

    Database with Prisma & PostgreSQL

    Làm việc với database modeling, Prisma schema, migration, CRUD, relations, pagination, filtering, sorting, transactions, seed data và repository/service pattern. Practice: Blog CMS API, Course API, user/profile relation, pagination API và transaction order flow.

    PostgreSQLPostgreSQLPrismaPrismaTransactions
  6. 06

    Chặng 06

    Authentication

    Học register/login, password hashing, JWT access token, refresh token, cookie vs Authorization header, AuthGuard, current user, logout, token rotation basics và session strategy overview. Practice: Auth API, refresh token flow, protected profile route và React login integration.

    JWTRefresh TokenAuthGuard
  7. 07

    Chặng 07

    Authorization & RBAC

    Thiết kế roles, permissions, RBAC, policy-based access, public route decorator, admin-only routes, ownership check và resource-level permission. Practice: Admin dashboard API, owner-can-edit-own-post, moderator role và permission matrix.

    RBACPermissionsRoles
  8. 08

    Chặng 08

    API Documentation & Developer Experience

    Chuẩn hóa Swagger/OpenAPI, API versioning, response examples, DTO documentation, error docs, Postman/Insomnia collection và API contract cho frontend. Practice: generate Swagger docs, write API contract và document auth endpoints.

    SwaggerOpenAPIAPI Contract
  9. 09

    Nâng cao

    Chặng 09

    Testing NestJS

    Bao phủ unit test services, controller test, mock providers, e2e test, test auth guard, test validation, test database flow và test với fake repository. Practice: test AuthService, test UserController, e2e login flow và e2e CRUD flow.

    Unit TestE2EMock Providers
  10. 10

    Chặng 10

    Production Backend

    Đi vào config management, logging, CORS, Helmet, rate limiting, file upload, health checks, Docker basics, deploy API, deploy database, environment strategy và monitoring basics. Practice: Dockerize NestJS, deploy NestJS + PostgreSQL, add health check, rate limiting và file upload validation.

    DockerHelmetRate Limiting
  11. 11

    Chặng 11

    Advanced NestJS Architecture

    Mở rộng với caching, Redis, queues, background jobs, events, WebSocket, scheduler, CQRS overview, microservices overview, RabbitMQ/Kafka/gRPC overview và monorepo architecture. Practice: notification queue, realtime chat, cache product list, scheduled cleanup job và mini microservice.

    RedisQueuesMicroservices

Bạn sẽ làm được

  • Có một NestJS roadmap rõ ràng từ foundation tới production và advanced architecture.
  • Đi từ core NestJS sang validation, request lifecycle, Prisma/PostgreSQL, auth, RBAC và testing.
  • Bám sát các concern production như Docker, Helmet, rate limiting, health checks và deployment.
  • Có đủ practice flows để nối phần học NestJS với project thực tế và interview prep.

Kỹ năng trên đường đi

  • Node.jsNode.js
  • TypeScriptTypeScript
  • NestJSNestJS
  • PrismaPrisma
  • Docker
  • Microservices

Bài viết cho lộ trình này

Tất cả bài viết

Model Context Protocol thực chiến: xây MCP server production bằng TypeScript

MCP không phải phép màu, chỉ là một giao thức JSON-RPC được thiết kế tốt. Bài này giải thích host, client, server, các primitive và transport theo spec 2026-07-28, rồi dựng một server TypeScript chỉ đọc cho dữ liệu đơn hàng: thiết kế tool, phân trang, test bằng Inspector, OAuth cho remote server và những lỗ hổng bảo mật cần chặn.

Công cụ & quy trình20 phút

Lộ trình còn lại

01React

Frontend · Frontend Developer

React Roadmap

Lộ trình React đầy đủ hơn cho frontend hiện đại: bắt đầu từ JavaScript/TypeScript, mental model và component fundamentals, sau đó đi sâu vào state architecture, data fetching, performance, testing, bridge sang Next.js và kết thúc bằng interview prep.

14 chặng124 trọng tâm65 bài thực hành

  1. TypeScriptTypeScript
  2. ReactReact
  3. State Architecture
  4. Data Fetching
  5. Testing
  6. Next.jsNext.js
Xem lộ trình