How devsentap/demo-bookinghotelfrontendreact works
Main System Components
a) Static Site Generation Layer
• GatsbyJS build system at the core
• How it generates static assets
• Build-time vs runtime components
b) Frontend Architecture
• React Components Layer
• Static Assets (images)
• Data Layer (JSON)
• Routing System
Component Organization
Create distinct sections showing:
a) Core Application Components:
• Layout Component (src/components/layout.js)
• Header Component (src/components/header.js)
• Page Components (src/pages/*)
b) Data Flow:
• JSON data source (src/test.json) → React Components
• Static asset handling (src/images)
• Gatsby's data layer
Technology Stack Representation
• GatsbyJS framework (primary container)
• Bulma/Bloomer UI components (styling layer)
• Static assets (resource containers)
[Browser] ←→ [Static Host (Surge.sh)]
• ↑
• [Built Static Assets]
• ↑
• [Gatsby Build Process]
[Layout Component] → [Header Component]
• ↓
[Page Components] ← [JSON Data]
• ↓
[Bulma/Bloomer UI Components]
Important Elements
a) Build-time Flow:
• Gatsby's build process
• JSON data integration
• Static asset processing
b) Runtime Flow:
• Client-side routing
• Component hierarchy
• UI framework integration
Use these visual elements:
• Purple container for Gatsby build process
• Orange elements for UI framework components
Annotations for:
• Build-time vs Runtime processes
• Data transformation points
• Static asset handling
• Component relationships