Create an App Builder project
Adobe I/O Events for Adobe Commerce allows you to send and monitor custom Adobe Commerce user-driven events. Follow the instructions on this page to create and configure a project for Adobe I/O Events.
Requirements
To get started with Adobe I/O Events, you must:
Have an Adobe Developer account with System Administrator or Developer Role permissions. Getting started with Adobe Developer Console describes how to enroll in the Adobe developer program.
Be familiar with Adobe I/O Runtime.
Install the
aio CLI
.Have access to an Adobe Commerce on cloud infrastructure or to an on-premises instance.
Set up a project
Projects Overview describes the different types of projects and how to manage them. Here, we'll create a templated project.
Log in to the Adobe Developer Console and select the desired organization from the dropdown menu in the top-right corner.
Click Create new project > Project from template.
Select App Builder. The Set up templated project page displays.
Specify a project title and app name. Make sure the Include Runtime with each workspace checkbox is selected. Click Save. The Console creates a workspace.
In your workspace, click the Add service pop-up menu and select API.
On the Add an API page, filter on Adobe Services and select I/O Management API. Then click Next.
On the Configure API page, select the OAuth Server-to-Server option and click Save configured API.
Note: You can set up server-to-server authentication using JSON Web Tokens (JWT). However, this method has been deprecated in favor of OAuth and must be replaced no later than January 1, 2025. See Service Account (JWT) Authentication for details on implementing this solution.
On the front page of your workspace, click the Add service pop-up menu and select API.
On the Add an API page, filter by Experience Cloud and select Adobe I/O Events for Adobe Commerce. Then click Next.
On the Configure API page, click Save configured API.
If you are using JWT authentication, unzip the downloaded
config.zip
file. The extractedconfig
directory should contain acertificate_pub.crt
and aprivate.key
file. Theprivate.key
file is required to configure the Commerce Admin.
Download the workspace configuration file
The console can generate a JSON file that defines the configuration of your workspace. You will use this file to configure the Commerce Admin.
To download a .json
file containing your workspace configuration:
Go to the overview page of your workspace.
Click the Download All button in the top-right corner.
The
<Workspace-name>.json
file downloads automatically. In this example, the file is named485PeachHare-283976-Stage.json
.
Set up App Builder and define a runtime action
The first step to setting up your App Builder template is to set up your environment and create a runtime action. For details about this process, see Setting up Your Environment in the Adobe IO Runtime Guide and Create a templated project in the Developer Console Guide.
Create a project directory on your local filesystem and change to that directory.
Copied to your clipboardmkdir myproject && cd myprojectLog in to Adobe IO from a terminal:
Copied to your clipboardaio loginYour web browser displays the login page.
Enter your Adobe ID credentials.
Close the browser tab and return to your terminal. Enter the following command to bootstrap your application:
Copied to your clipboardaio app initThe terminal prompts you to select the path to your workspace.
Select your project's organization.
Select your project.
Select the DX Experience Cloud SPA v1 option.
The command initializes a project with a default UI and creates a default Adobe I/O Runtime Action with an internal name of
dx-excshell-1/generic
. This action will be specified later when configuring your workspace to register events.Launch App Builder by running the following command:
Copied to your clipboardaio app runThe command displays the URL where you can access the default UI. Running the command enables the runtime action referenced in Subscribe and register events.
You've completed the basic setup of your project. The next step is to install Adobe I/O Events for Adobe Commerce.