Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Quick start

Overview

Quick Start provides everything you need to begin building with Adobe Commerce Storefronts, from understanding the architecture to creating your first storefront and optimizing performance.

Create site repo

This task requires you to have a GitHub account with access to the organization or owner where you want to create your new repo.

Create your storefront repo

Create your storefront repo.
  1. Navigate to aem-boilerplate-commerce , select the Use this template button, then select the Create a new repository option to open the form.

  2. Complete the form with the following details:

    • Repository template: hlxsites/aem-boilerplate-commerce (default).
    • Include all branches: Do not include all branches (default).
    • Owner: Your organization or account (required).
    • Repository name: A unique name for your new repo (required).
    • Description: A brief description of your repo (optional).
    • Public or Private: We recommend public (default).
  3. Select the Create repository button and watch GitHub create your new storefront repo.

  4. After a few seconds, you should be redirected to the home page of your new repo.

Edge Delivery Services requires site configuration details to know what to render. These include at minimum a content reference and a code reference. The simplest approach is to create those references in the fstab.yaml configuration file.

  1. Rename default-fstab.yaml to fstab.yaml.
  2. Replace {org} and {site} in fstab.yaml using the GitHub url to determine the correct values: https://github.com/{org}/{site}.
  3. Commit and push this change to the main branch of your repository.

Add the Code Sync app

The Code Sync app redeploys your storefront site whenever you push or merge changes to the main branch of your repo.

Add AEM Code Sync to your repository.

Add AEM Code Sync to your repository.
  1. Navigate to the AEM Code Sync app and select the Configure button (top right) to open the repo selection page.

  2. Select the organization or account for the repo you just created.

  3. From the form, choose Only select repositories, open the Select repositories selector, and choose your repo from the list.

  4. Select Install (or Save, see note above) to complete the Code Sync installation.

  5. You should see a success screen if the installation completed without errors. Your repo is now connected to the Edge Delivery Services code bus.

  6. (Optional) If you return to the account selection page , your repo’s organization or account will now be gray with “Configure” added. Select your org or account again to access the Code Sync configuration page. This page shows when the app was added to your organization (highlighted) and allows you to connect the Code Sync app to additional repositories.

To link your storefront repo to your commerce backend, you can use the config generator tool to automatically generate a config.json file for your site based on your Commerce backend—Adobe Commerce, Adobe Commerce as a Cloud Service, or Adobe Commerce Optimizer.

Update the storefront configuration for your project:

  1. Get information about the values required for your project from the Storefront configuration reference to get information about the values required for your project.
  2. Update the config.json file with the values for your project.
  3. Commit and push the updated file to the repo.

Add content

Now let’s create and initialize the content side of your storefront. We’ll create a new folder and share it with Edge Delivery Services. Follow these steps to create your https://da.live content folder.

  1. Open the Site Creator tool, and select Use existing repository.
  2. Copy the GitHub owner and site values to the input fields and click Create site.
  3. Follow the prompts, and by the end the content will have been copied to your content folder.
  4. You may have to manually preview or publish the content, depending on whether you followed the prerequisites.

Initialize your storefront content

Initialize your storefront content

Install and configure Sidekick

  1. Review documentation about using and installing the AEM Sidekick.

  2. In your GitHub repository, edit the sidekick configuration file tools/sidekick/config.json.

    {
    "project": "My Project",
    "editUrlLabel": "Document Authoring",
    "editUrlPattern": "https://da.live/edit#/{{org}}/{{site}}{{pathname}}"
    }
  3. In the editUrlPattern field, replace the key values with the values for your GitHub repository.

    • Replace the {{ORG}} string with the organization or username for your repository.

    • Replace the {{SITE}} string with the repository name.

    • The pathname variable is populated by the system.

    +++Example of updated configuration file

    If your GitHub repository is named aco-storefront and your organization is early-adopter, the updated URL should look like this:

    {
    "project": "My Project",
    "editUrlLabel": "Document Authoring",
    "editUrlPattern": "https://da.live/edit#/aco-storefront/early-adopter{{pathname}}"
    }
  4. Save the file and commit the changes.

Set up local environment

  1. Go to your GitHub repo and select the Code button to copy the repo’s git URL for cloning (HTTPS or SSH).

  2. Open a terminal on your local machine and clone your storefront repo:

    git clone [HTTPS or SSH URL]
  3. Navigate to the root of your local repo and install the dependencies.

    npm install
  4. Start the development server to view the boilerplate storefront.

    npm start

    The first page of your boilerplate storefront should be visible in your browser at http://localhost:3000.

    Boilerplate Home Page
  5. Open the project in your favorite code editor. You’re now ready to explore the boilerplate and start customizing your storefront!

(Optional) Secure your storefront

While your storefront is now functional, it’s important to understand that your site is not protected by default. We recommend securing your content, repository, and site access before deploying to production or sharing with external users.