1.1.2 Setup your AEM CS environment

1.1.2.1 Setup your GitHub repo

Go to https://github.com. Click Sign In.

AEMCS

Enter your credentials. Click Sign In.

AEMCS

Once signed in, you’ll see your GitHub Dashboard.

AEMCS

Go to https://github.com/adobe-rnd/aem-boilerplate-xcom. You’ll then see this. Click Use this template and then click Create a new repository.

AEMCS

For the Repository name, use citisignal-aem-accs. Set the visibility to Private. Click Create repository.

AEMCS

After a couple of seconds, you’ll then have your repository created.

AEMCS

Next, go to https://github.com/apps/aem-code-sync. Click Install or Configure.

AEMCS

Click the Continue button next to your GitHub user account.

AEMCS

Click Configure next to your GitHub user account.

AEMCS

Click Only select repositories and then add the repository that you just created.

AEMCS

Scroll down and cliclk Save.

AEMCS

You’ll then get this confirmation.

AEMCS

1.1.2.2 Update file fstab.yaml

In your GitHub repo, click to open the file fstab.yaml.

AEMCS

Click the edit icon.

AEMCS

You now need to update the value for the field url on line 3.

AEMCS

You need to replace the current value by the URL of your specific AEM Sites CS environment in combination with the settings of your GitHub repo.

This is the current value of the URL: https://author-p130360-e1272151.adobeaemcloud.com/bin/franklin.delivery/adobe-rnd/aem-boilerplate-xcom/main.

There are 3 parts of the URL that need to be updated

https://XXX/bin/franklin.delivery/YYY/ZZZ/main

XXX should be replaced by the URL of your AEM CS Author environment.

YYY should be replaced by your GitHub user account.

ZZZ should be replaced by the name of the GitHub repository that you used in the previous exercise.

You can find the URL of your AEM CS Author environment by going to https://my.cloudmanager.adobe.com. Click your Program to open it.

AEMCS

Next, click the 3 dots on the Environments tab and click View Details.

AEMCS

You’ll then see your environment details, including the URL of your Author environment. Copy the URL.

AEMCS

XXX = author-p166717-e1786231.adobeaemcloud.com

For the GitHub user account name, you can easily find that in the URL of your browser. In this example, the user account name is woutervangeluwe.

YYY = woutervangeluwe

AEMCS

For the GitHub repository name, you can also find it in the browser window that you have open in GitHub. In this case, the repository name is citisignal.

ZZZ = citisignal-aem-accs

AEMCS

These 3 values combined, lead to this new URL that needs to be configured in the file fstab.yaml.

https://author-p166717-e1786231.adobeaemcloud.com/bin/franklin.delivery/woutervangeluwe/citisignal-aem-accs/main

Click Commit changes….

AEMCS

Click Commit changes.

AEMCS

The file fstab.yaml has now been updated.

1.1.2.3 Upload CitiSignal assets & site

Go to https://my.cloudmanager.adobe.com. Click your Program to open it.

AEMCS

Next, click the URL of your Author environment.

AEMCS

Click Sign in with Adobe.

AEMCS

You’ll then see your Author environment.

AEMCS

Your URL will look like this: https://author-p166717-e1786231.adobeaemcloud.com/ui#/aem/aem/start.html?appId=aemshell

You now need to access the CRX Package Manager environment of AEM. To do that, remove ui#/aem/aem/start.html?appId=aemshell from the URL and replace it by crx/packmgr, which means your URL should look like this now:
https://author-p166717-e1786231.adobeaemcloud.com/crx/packmgr.
Hit Enter to load the package manager environment

AEMCS

Next, click Upload package.

AEMCS

Click Browse to locate the package to upload.

The package to upload is called citisignal-assets.zip and can be downloaded here: https://one-adobe-tech-insiders.s3.us-west-2.amazonaws.com/one-adobe/citisignal_aem_accs.zip.

AEMCS

Select the package citisignal_aem_accs.zip and click Open.

AEMCS

Next, click OK.

AEMCS

The package will then be uploaded. Next, click Install on the package you just uploaded.

AEMCS

Click Install.

AEMCS

After a couple of minutes, your package will then be installed.

AEMCS

You can now close this window.

1.1.2.4 Publish CitiSignal assets

Go to https://my.cloudmanager.adobe.com. Click your Program to open it.

AEMCS

Next, click the URL of your Author environment.

AEMCS

Click Sign in with Adobe.

AEMCS

You’ll then see your Author environment. Click Assets.

AEMCS

Click Files.

AEMCS

Click to select the folder CitiSignal and then click Manage Publication.

AEMCS

Click Next.

AEMCS

Click Publish.

AEMCS

Your assets have now been published.

1.1.2.5 Publish CitiSignal website

Click the Adobe Experience Manager product name in the top left corner of your screen and then click the arrow next to Assets.

AEMCS

Next, click Sites.

AEMCS

You should then see your CitiSignal website which was created after installing the package before.

AEMCS

In order to link your site to the GitHub repository that you created before, you need to create an Edge Delivery Services Configuration.

The first step to do that is to create a Cloud Configuration.

To do that, click the Adobe Experience Manager product name in the top left corner of your screen, then click the tools icon and then select General. Click to open Configuration Browser.

AEMCS

You should then see this. Click Create

AEMCS

Set the fields Title and Name to CitiSignal. Enable the checkbox for Cloud Configurations.

Click Create.

AEMCS

You should then have this.

AEMCS

Next, you need to update some fields of the Cloud Configuration you just created.

To do that, click the Adobe Experience Manager product name in the top left corner of your screen, then click the tools icon and then select Cloud Services. Click to open Edge Delivery Services Configuration.

AEMCS

Select CitiSignal, click Create and select Configuration.

AEMCS

You now need to fill out the fields Organization and Site Name. To do that, first have a look ath the URL of your GitHub repository.

AEMCS

  • Organization: use the name of your GitHub org name, in this example it is woutervangeluwe
  • Site Name: use the name of the GitHub repository, which should be citisignal-aem-accs.

Click Save & Close.

AEMCS

You should then have this. Enable the checkbox in front of your newly create Edge Cloud Configuration and click Publish.

AEMCS

1.1.2.6 Update file paths.json

In your GitHub repo, click to open the file paths.json.

AEMCS

Click the edit icon.

AEMCS

You now need to update the replace the text aem-boilerplate-commerce by CitiSignal on lines 3, 4, 5, 6, 7 and 10.

Click Commit Changes.

AEMCS

Click Commit Changes.

AEMCS

The file paths.json has now been updated.

1.1.2.7 Publish CitiSignal website

Click the Adobe Experience Manager product name in the top left corner of your screen and then select Sites.

AEMCS

Next, click the checkbox in front of CitiSignal. Then, click Manage Publication.

AEMCS

Click Next.

AEMCS

Click Include Children Settings.

AEMCS

Click to select the checkbox Include children and then click to unselect the other checkboxes. Click OK.

AEMCS

Click Publish.

AEMCS

You’ll then be sent back here. Click CitiSignal, select the checkbox in front of index and then click Edit.

AEMCS

Your website will then open in the Universal Editor.

AEMCS

You will now be able to acces your website by going to main--citisignal-aem-accs--XXX.aem.page and/or main--citisignal-aem-accs--XXX.aem.live, after replacing XXX by your GitHub user account, which in this example is woutervangeluwe.

In this example, the full URL becomes this:
https://main--citisignal-aem-accs--woutervangeluwe.aem.page and/or https://main--citisignal-aem-accs--woutervangeluwe.aem.live.

It may take some time before all the assets are shown correctly, as they need to be published first.

You’ll then see this:

AEMCS

1.1.2.8 Test Page Performance

Go to https://pagespeed.web.dev/. Enter your URL and click Analyze.

AEMCS

You’ll then see that your website, in both a mobile and desktop visualization, gets a high score:

Mobile:

AEMCS

Desktop:

AEMCS

Next Step: Develop a custom block

Go Back to Adobe Experience Manager Cloud Service & Edge Delivery Services

Go Back to All Modules

recommendation-more-help
4bbf020c-24db-4a43-b239-88fab142f02d