Bỏ qua, đến nội dung

Handbook

Tài liệu trong repo này bổ sung cho mã trong packages/, tập trung kiến trúc, coreplugin - không thay thế hoàn toàn site docs chính thức.

Cấu trúc nội dung

1. Kiến trúc tổng thể

Tài liệuNội dung
Kiến trúcMục lục và thứ tự đọc phần kiến trúc
Tổng quan hệ thốngContext, boundary, nguyên tắc thiết kế, deployment
Server architectureKoa app, hai tầng middleware, ResourceManager, DataSource
Client architectureReact SPA, managers, provider chain, rendering
Data model & metadataCollection, Field, UI Schema, metadata-driven workflow
Plugin architecturePluginManager, lifecycle, extension points, dependency
Security modelAuthManager, ACL Engine, pipeline bảo mật
Request lifecycleEnd-to-end flows, install/upgrade, debug checklist

2. Core (packages/core) - ưu tiên đọc trước plugin

Tài liệuNội dung
Core - mục lục & thứ tự đọcHub, lộ trình 01 -> 09
Bản đồ góiPackage → vai trò, trục debug
Luồng request & dữ liệuResource → ACL → repository
Server - ApplicationKoa app, sự kiện vòng đời, PluginManager server
Client - ApplicationSPA, PluginManager client, schema, APIClient
Database: Collection & RepositoryCollection, repository, hook
Resourcer & ActionsResource, action, Context
DataSourceManagerNhiều data source (server); lưu ý khác client
Engine ACL@digiforce-nc/acl: role, allow, snippet, middleware
Auth & AuthManager@digiforce-nc/auth, JWT, kiểm tra public

3. Plugin

Tài liệuNội dung
Tài liệu plugin (developer)Quy ước thư mục, template, danh sách

Ai đọc phần nào

  • Kiến trúc sư / tech lead: architecture/, sau đó core/.
  • Developer plugin / tích hợp: đọc core/0109 (tối thiểu 02, 03, 06, 08), sau đó architecture/05-plugin-architecture.md, plugins/README.md, rồi từng plugin-*.
  • Vận hành: ưu tiên từng plugin có 04-ui-user-guide.md06-troubleshooting.md.

Nguyên tắc cập nhật

  • Mô tả phải khớp với code trong packages/corepackages/plugins tại nhánh hiện tại; khi refactor lớn, cập nhật lại handbook.
  • Chi tiết API từng module: ưu tiên README/index.md trong package + bài deep-dive trong core/ khi đủ thời gian.