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.
-
Navigate to aem-boilerplate-commerce , select the Use this template button, then select the Create a new repository option to open the form.
-
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).
- Repository template:
-
Select the Create repository button and watch GitHub create your new storefront repo.
-
After a few seconds, you should be redirected to the home page of your new repo.
Link repo to content
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.
- Rename default-fstab.yaml to
fstab.yaml
. - Replace
{org}
and{site}
infstab.yaml
using the GitHub url to determine the correct values:https://github.com/{org}/{site}
. - 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.
-
Navigate to the AEM Code Sync app and select the Configure button (top right) to open the repo selection page.
-
Select the organization or account for the repo you just created.
-
From the form, choose Only select repositories, open the Select repositories selector, and choose your repo from the list.
-
Select Install (or Save, see note above) to complete the Code Sync installation.
-
You should see a success screen if the installation completed without errors. Your repo is now connected to the Edge Delivery Services code bus.
-
(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.
Link repo to commerce data
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:
- Get information about the values required for your project from the Storefront configuration reference to get information about the values required for your project.
- Update the
config.json
file with the values for your project. - 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.
- Open the Site Creator tool, and select Use existing repository.
- Copy the GitHub owner and site values to the input fields and click Create site.
- Follow the prompts, and by the end the content will have been copied to your content folder.
- You may have to manually preview or publish the content, depending on whether you followed the prerequisites.
Install and configure Sidekick
-
Review documentation about using and installing the AEM Sidekick.
-
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}}"} -
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 isearly-adopter
, the updated URL should look like this:{"project": "My Project","editUrlLabel": "Document Authoring","editUrlPattern": "https://da.live/edit#/aco-storefront/early-adopter{{pathname}}"} -
-
Save the file and commit the changes.
Set up local environment
-
Go to your GitHub repo and select the Code button to copy the repo’s git URL for cloning (HTTPS or SSH).
-
Open a terminal on your local machine and clone your storefront repo:
git clone [HTTPS or SSH URL] -
Navigate to the root of your local repo and install the dependencies.
npm install -
Start the development server to view the boilerplate storefront.
npm startThe first page of your boilerplate storefront should be visible in your browser at
http://localhost:3000
. -
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.