Skip to content

adobe-rnd/aem-boilerplate-xcom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP: Crosswalk + Adobe Commerce Boilerplate

This project boilerplate is for AEM Authoring with Edge Delivery Services (aka Crosswalk) projects that integrate with Adobe Commerce.

Documentation

https://experienceleague.adobe.com/developer/commerce/storefront/

Environments

Pre-requisites

Out of the box, this project template uses a pre-configured Adobe Commerce environment. If you want to use your own Adobe Commerce environment, you'll need to update the configuration spreadsheet in your AEM site to have values that match your environment.

Additionally, you need to have the following modules and customizations installed on your environment:

  1. adobe-commerce/storefront-compatibility: Contains changes to the Adobe Commerce GraphQL API that enable drop-ins functionality.
  2. magento/module-data-services-graphql: Commerce module with the functionality necessary for adding context to events.
  3. magento/module-page-builder-product-recommendations: Commerce module required for PRex Widget
  4. magento/module-visual-product-recommendations: Commerce module required for PRex Widget

Documentation

Before using the boilerplate, we recommend you to go through the documentation on WYSIWYG Content Authoring for Edge Delivery Services and more specifically:

  1. Developer Tutorial
  2. Content Modeling
  3. Creating Blocks
  4. Spreadsheets
  5. Path Mapping
  6. Folder Mapping

Installation

npm i 

Updating Drop-in dependencies

You may need to update one of the drop-in components, or @adobe/magento-storefront-event-collector or @adobe/magento-storefront-events-sdk to a new version. Besides checking the release notes for any breaking changes, ensure you also execute the postinstall script so that the dependenices in your scripts/__dropins__ directory are updated to the latest build. This should be run immediately after you update the component, for example:

npm install @dropins/[email protected]. # Updates the storefront-cart dependency in node_modules/
npm run postinstall # Copies scripts from node_modules into scripts/__dropins__

This is a custom script which copies files out of node_modules and into a local directory which EDS can serve. You must manually run postinstall due to a design choice in npm which does not execute postinstall after you install a specific package.

Linting

npm run lint

Setup

See also Developer Tutorial

  1. Create a new repository based on the aem-boilerplate-xwalk-commerce template
  2. Install all dependencies using npm i.
  3. Add the AEM Code Sync GitHub App to the repository, so your code changes get synced with EDS.
  4. [todo] create a new site in AEM using the site template XXX
  5. Update the mountpoint in fstab.yaml
  6. Update the path mappings in paths.json
  7. Update your Adobe Commerce SaaS configuration in the configuration sheet in your AEM site.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published