How markmiro/migratingcranes works
Main Components
a) Development Environment:
• Node.js Build System
• Handlebars Templates (.hbs files)
• CSS/Bootstrap Styling
• R Scripts (External data processing)
b) Build Process:
• Source Files (src/)
• Template Compilation
• Static Asset Generation
• Output (dist/)
c) Deployment & Hosting:
• GitLab (Version Control/CI)
• Cloudflare (Hosting/CDN)
• Development Layer |
• HBS | | CSS/Bootstrap | | R Scripts | | Configuration | |
• Templates | | Styling | | (Reports) | | (.node-version) | |
• ↓ |
• Build Layer |
• Build Script | | Static Site | |
• (build.mjs) |→ | Generation | |
• ↓ |
• Deployment Layer |
• GitLab | → | Cloudflare | → End Users |
• CI/CD | | CDN/Hosting | |
Important Details to Highlight
a) Template Structure:
• Relationship between main templates (index.hbs, about.hbs, to-us.hbs)
• Partials (layout.hbs, google-analytics.hbs)
• Country-specific page generation process
b) Data Flow:
• How R-generated reports are integrated
• Transformation from templates to static HTML
• Path from source to distribution