Giao diện
Kiến trúc
Phần này mô tả Digiforce ở mức hệ thống - từ tổng quan tới chi tiết server, client, data model, plugin, bảo mật, và luồng request.
Thứ tự đọc đề xuất
- Tổng quan hệ thống - context kiến trúc, thành phần lớn, boundary, nguyên tắc thiết kế.
- Server architecture - Koa app, hai tầng middleware, ResourceManager, DataSourceManager.
- Client architecture - React SPA, managers, provider chain, rendering.
- Data model & metadata - Collection, Field, UI Schema, metadata-driven workflow.
- Plugin architecture - mô hình plugin, lifecycle server/client, extension points.
- Security model - AuthManager, ACL Engine, pipeline bảo mật.
- Request lifecycle - end-to-end flows (read/write/WS/install/upgrade), debug checklist.
- FAQ - câu hỏi thường gặp về kiến trúc.
Sơ đồ có trong phần này
- Tổng quan: system context, container server/client, monorepo package map, deployment.
- Server: Application init, hai tầng middleware (Koa + data source pipeline), ResourceManager, DataSourceManager.
- Client: Application constructor, provider chain, RouterManager, PluginManager load sequence, WebSocket.
- Data model: Collection → Model → Repository → Table, UI Schema rendering, metadata workflow.
- Plugin: hai nhánh PluginManager, lifecycle server (load/install/enable), lifecycle client (init/load).
- Security: Auth middleware flow, JWT lifecycle, ACL
can()decision tree, ACL middleware sequence. - Request lifecycle: read/write sequence, WebSocket, install/upgrade flow, data/control plane.
Liên quan
- Core handbook - tài liệu kỹ thuật chi tiết từng package core.
- Plugin handbook - tài liệu theo từng plugin cụ thể.