Lesson 1: Create a New App Builder App from Template
Create a Console Integration and Set up Project
In order to use custom events CLI plugin, you need to get below information from console integration.
IMS Org Id
: The Organization Id in which the provider, event metadata, etc are to be created.API key
: The API Key (client id) for the integration (project workspace)JWT Token
: Note that I/O Management Service needs to be enabled for the integrationConfig.zip
: Config file downloaded from console includingprivate key
andcertificate_pub.crt
project.json
: for instance,projectname-orgId-Production.json
file downloaded from console
Navigate to Adobe I/O console at https://console.adobe.io in your browser and create a project using App Builder template or using your exsiting project
Select
Add to Project
->Add an API
->Adobe Services
->I/O managemenet API
Follow the steps to configure API, create a new service account (JWT) credential,
config.zip
will be downloaded automatically, you will need the private key to generate JWT token.Go to
project overview
tab, download project metadata fromDownload
button and get the needed info from this.json
file, or you can also get these info from.aio
file in the project folder.
Initialize an App Builder app using CLI template
To initialize an App Builder app, let's use init command from the CLI. More information please refer to Creating your First App Builder Application
Copied to your clipboardaio app init <Your-project-name> --no-extensions
You will be presented with a few options, first question is "Which Adobe I/O App features do you want to enable for this project?" In this lab, we keep all of them. The second question is "Which type of sample actions do you want to create?" in this lab, we will select Generic
, please remember to keep the publish-event
template.
Name your action, then you have created your App Builder template. Now you can use this template to start your app
In this lab, user will create a webpage using this generic template. if this is your first time to use App Builder, follow below instructions:
In next lesson, we will show how to use custom event to register this app as event provider and click the invoke
button
to fire an event, this event will be consumed by three ways (Journaling API, webhook URL, runtime action)