How arunpatidar02/aem-helix-1 works
Project Type and Purpose
• This is a front-end project built on Adobe Helix (static site generator) that integrates with Adobe Experience Manager (AEM) via the AEM CLI proxy and the AEM Code Sync GitHub App.
• Purpose: Author, preview, and publish content using Helix Pages and AEM as the content store (JCR), with a local development flow and automated CI/CD pipelines.
File Structure
• Top-level directories:
• blocks/ – reusable UI components (each with its own CSS/JS).
• scripts/ – DOM utilities, AEM integration helpers, experimentation scripts.
• styles/ – global styles and fonts.
• tools/ – Helix Sidekick (in-browser AEM editor) and preview helpers.
• Configuration files: fstab.yaml (mountpoint to AEM), helix-query.yaml, helix-sitemap.yaml, package.json, GitHub workflows.
• Patterns:
• Modular block-based front end (Helix Page Builder).
• Local AEM proxy for content API calls (via @adobe/aem-cli).
• CI/CD via GitHub Actions (lint, test, semantic release).
Extract Insights from README
• Local dev flow:
a. fstab.yaml configures a mountpoint for AEM content.
b. AEM CLI (aem up) runs a proxy at http://localhost:3000 that serves Helix pages and forwards API calls to AEM.
c. Helix Sidekick is injected into pages for in-context editing.
• Preview & Live environments are Helix-hosted endpoints (*.hlx.page and *.hlx.live).
Main System Components
a. Developer Workstation
b. GitHub Repository (aem-boilerplate template + this code)
c. GitHub Actions (CI/CD workflows: lint, test, release)
d. AEM Code Sync GitHub App (syncs code to AEM author instance)
e. AEM Author & Publish Instances (content repository)
f. Helix CLI / AEM Proxy (local dev server on port 3000)
g. Helix Page Builder (blocks/ + scripts/ + styles/)
h. Helix Sidekick (in-browser AEM editing tool)
i. Preview Environment (*.hlx.page)
j. Live Environment (*.hlx.live)
Relationships & Data Flows
• Developer pushes code → GitHub → triggers GitHub Actions → builds/test/deploy.
• AEM Code Sync App deploys code to AEM Author (JCR).
• For local dev, Helix CLI spins up a proxy:
• Serves static pages generated from blocks/ + content fetched from AEM via the mountpoint.
• Helix Sidekick scripts load into the page for authoring.
• Preview & Live: static assets and dynamic GraphQL queries (defined in helix-query.yaml) are executed by Helix Runtime at request time.
Architectural Patterns & Design Principles
• Modular, component-based front end (each block is self-contained).
• Clear separation of concerns: UI (blocks + styles), data (AEM), orchestration (Helix CLI/Runtime).
• Infrastructure as code: all mountpoints, queries, and sitemap configs are in YAML.
• CI/CD via GitHub Actions ensures code quality and automated releases.
Essential Elements
• Notes on key config files (fstab.yaml, helix-query.yaml, helix-sitemap.yaml).