Build a URL Shortener: Database Design & Storage
Thêm PostgreSQL và Prisma ORM vào URL shortener. Học database schema design, migrations, indexing strategies, connection pooling, và cách thay thế in-memory storage bằng persistent database queries.
Tất cả bài viết với thẻ "nodejs"
Thêm PostgreSQL và Prisma ORM vào URL shortener. Học database schema design, migrations, indexing strategies, connection pooling, và cách thay thế in-memory storage bằng persistent database queries.
Thêm JWT authentication, user registration và URL management vào URL shortener. Implement access và refresh tokens, bcrypt password hashing, auth middleware, user-scoped URLs và API key generation.
Setup project Express + TypeScript từ đầu và build endpoint URL shortening đầu tiên. Bao gồm project scaffolding, folder structure, URL validation, Base62 short codes, redirect handling và error middleware.
Học cách xây dựng URL shortener production-ready từ đầu với Express, TypeScript, PostgreSQL, Redis và React. Series 15 bài bao gồm API design, database modeling, caching, analytics, authentication, deployment, admin panel và SEO.
So sánh ba TypeScript ORM hiện đại: Prisma, TypeORM, và Drizzle. Tìm hiểu architecture, query patterns, migration, performance, và khi nào nên dùng cái nào với ví dụ thực tế.
Master NestJS fundamentals: modules, controllers, providers, và DI container. Hiểu Angular connection, request lifecycle, lifecycle hooks, custom providers, và build một REST API hoàn chỉnh.
Nắm vững Express Router để tổ chức route theo module. Học nested routes, route parameters, request validation với express-validator, file uploads với multer và RESTful API design best practices.
Xây dựng REST API hoàn chỉnh với Express.js và TypeScript. Bao gồm type-safe routing, request validation với Zod, middleware patterns, error handling, kiến trúc Controller/Service/Repository, và OpenAPI documentation.
Học cách thiết lập project TypeScript production-ready cho Node.js backend development. Bao gồm tsconfig.json, ESLint, Prettier, workflow phát triển với tsx, build tools, cấu trúc project, environment variables, và path aliases.
Hiểu rõ sự khác biệt cơ bản giữa JavaScript trên trình duyệt và JavaScript trên server (Node.js, Bun, Deno). Tìm hiểu về API, global object, module system, và những gì thay đổi khi JS rời khỏi trình duyệt.