Skip to content
Getting started

Getting started as a developer

Welcome to storefront development. Every Adobe Commerce storefront begins with ready-made starter code. Product details, cart, checkout, and other shopping features are already included and integrated into Commerce blocks, so your work goes into making the storefront look and feel like your brand.

Your storefront brings together two kinds of work: code from developers and content from authors.

As a developer, you work in your favorite IDE to develop the storefront project, which begins
with starter code. Authors work in Experience Workspace to edit the DA.live project, which begins
with starter content. The storefront project supplies code to your storefront, and the DA.live
project supplies content.

Your storefront combines code from the storefront project with content from the DA.live project.
  • Favorite IDE: Edit blocks, scripts, and styles with the tools you already use, then check each change in a local preview.
  • Starter code: The storefront boilerplate that every project begins from.
  • Storefront project: Your team’s own Git repository. Make changes here, not in the starter code.
  • Authors: Edit pages in Experience Workspace. Their Document Authoring (DA.live) project begins with starter content, a set of sample pages.
  • Your storefront: The brand-specific shopping experience your customers see.

Every storefront page mixes default content (headings, text, images) with blocks, reusable pieces that render together in the browser. Shopping features arrive as drop-ins, each inside a Commerce block.

A storefront page running in the browser contains content blocks, such as accordions, cards,
and columns, and Commerce blocks, such as product-details, commerce-cart, and commerce-checkout.
Each Commerce block contains a drop-in, such as product details, cart, or checkout. Outside the
page, drop-ins import the Storefront SDK and fetch Commerce data from Commerce
APIs.

Content blocks and Commerce blocks sit on the page alongside default content. Each Commerce block holds a drop-in, which imports the Storefront SDK and fetches Commerce data.
  • Content blocks: Editorial layouts, such as accordions, cards, and columns.
  • Commerce blocks: Hold a drop-in and place it on the page. For example, the commerce-cart block holds the cart drop-in.
    • Drop-ins: Ready-made shopping features, such as product details, cart, and checkout.
  • Storefront SDK: Shared tools and UI primitives that drop-ins import. Your blocks can use them too.
  • Commerce data: Product, cart, and order information that drop-ins fetch from Commerce APIs.

Drop-ins and the Storefront SDK are npm packages installed into your project, so you don’t edit their code directly. Your project uses them from three places.

Your storefront project, your team's Git repository, contains Commerce blocks in the blocks
folder, initializers in the scripts/initializers folder, and styles in styles/styles.css. You
change these. They use packages installed from npm: drop-ins and the Storefront SDK, which you
don't edit. Drop-ins fetch Commerce data from your Commerce
backend.

Your project's Commerce blocks, initializers, and styles use the drop-ins and Storefront SDK installed from npm. Drop-ins fetch Commerce data.
  • Commerce blocks: Import a drop-in’s containers and render them on the page, for example in blocks/commerce-cart/commerce-cart.js.
  • Initializers: Set up each drop-in, including its API endpoint and labels, for example in scripts/initializers/cart.js.
  • Styles: Define design tokens that drop-ins also use, such as --color-brand-500 in styles/styles.css.

Blocks and drop-ins shows how these files connect.

Start with these steps if your team does not already have a storefront project. If it does, skip to Run your storefront locally.

  1. Prerequisites: Gather the tools, accounts, and Commerce access you need.

  2. Backend options: Confirm the license and setup requirements for Adobe Commerce as a Cloud Service or Adobe Commerce Optimizer.

  3. Create a storefront: Set up your project repository, Commerce connection, and starter content.

  4. Run your storefront locally: Open a local preview with your project’s content and Commerce data.

  5. Verify your storefront setup: Test the shopping features your project needs.

Then try Make your first change to update a link color and see the result in your local preview.