Skip to content

Instantly share code, notes, and snippets.

View tienbian's full-sized avatar

Trần Vũ Quốc Tiến tienbian

  • Đà Nẵng, Việt Nam
View GitHub Profile
@tienbian
tienbian / web_standard_en.md
Created October 2, 2026 02:59
This document outlines the core standards for system design, API communication, and code quality management to ensure the security, performance, and scalability of Web Applications.

Web Application Design & Development Standards

This document outlines the core standards for system design, API communication, and code quality management to ensure the security, performance, and scalability of Web Applications.

1. API Design Standards

  • Standardized Payload:
    • Standard: All API responses must follow a single, unified format across the entire system.
    • Explanation: This allows the Frontend to implement HTTP Interceptors to handle common errors or pagination in a single place. (Example standard structure: { "data": {...}, "meta": {"pagination": ...}, "error": {"code": "...", "message": "..."} }).
@tienbian
tienbian / web_standard_vi.md
Last active October 2, 2026 02:57
Tài liệu này tổng hợp các tiêu chuẩn cốt lõi trong việc thiết kế hệ thống, giao tiếp API, và quản lý chất lượng mã nguồn nhằm đảm bảo tính bảo mật, hiệu suất và khả năng mở rộng của Web Application.

Bộ Tiêu Chuẩn Thiết Kế & Phát Triển Web Application

Tài liệu này tổng hợp các tiêu chuẩn cốt lõi trong việc thiết kế hệ thống, giao tiếp API, và quản lý chất lượng mã nguồn nhằm đảm bảo tính bảo mật, hiệu suất và khả năng mở rộng của Web Application.

1. Thiết kế Giao tiếp API (API Design Standards)

  • Chuẩn hóa cấu trúc Response (Standardized Payload):
    • Tiêu chuẩn: Mọi API trả về cần tuân theo một format duy nhất trên toàn hệ thống.
    • Giải thích: Điều này giúp Frontend có thể viết HTTP Interceptor để xử lý lỗi hoặc phân trang chung ở một nơi duy nhất. (Ví dụ cấu trúc chuẩn: { "data": {...}, "meta": {"pagination": ...}, "error": {"code": "...", "message": "..."} }).