%%{init: {'theme': 'base', 'themeVariables': {'background': '#282828','primaryColor': '#3c3836','primaryTextColor': '#fbf1c7','primaryBorderColor': '#fabd2f','lineColor': '#83a598'}}}%% flowchart LR U[Userผู้ใช้] --> B[Browserเบราว์เซอร์] B --> F[Front-endหน้าจอ] F --> A[Back-end/APIหลังบ้าน] A --> D[(Databaseฐานข้อมูล)]
%%{init: {'theme': 'base', 'themeVariables': {'background': '#282828','primaryColor': '#3c3836','primaryTextColor': '#fbf1c7','primaryBorderColor': '#fabd2f','lineColor': '#8ec07c'}}}%% flowchart LR subgraph A[Static Webเว็บเอกสาร] A1[HTML] end subgraph B[Dynamic Webเว็บตามข้อมูล] B1[Server Render] end subgraph C[Modern Webเว็บสมัยใหม่] C1[SPA + API + Cloud] end A1 --> B1 --> C1
%%{init: {'theme': 'base', 'themeVariables': {'background': '#282828','primaryColor': '#3c3836','primaryTextColor': '#fbf1c7','primaryBorderColor': '#fabd2f','lineColor': '#fe8019'}}}%% sequenceDiagram participant C as Clientฝั่งผู้ใช้ participant S as Serverฝั่งบริการ participant D as Databaseฐานข้อมูล C->>S: HTTP Request S->>D: Query / Update D-->>S: Result S-->>C: HTTP Response
%%{init: {'theme': 'base', 'themeVariables': {'background': '#282828','primaryColor': '#3c3836','primaryTextColor': '#fbf1c7','primaryBorderColor': '#fabd2f','lineColor': '#d3869b'}}}%% flowchart LR B[Browser] --> J[JavaScript App] J --> R[Client Routing] J --> A[REST API] A --> J J --> U[Update UI]