[Tutorial] Getting Started with the AEM SPA Editor | Community
Skip to main content
kautuk_sahni
Employee
Oct 22, 2018 6:44 AM UTC

[Tutorial] Getting Started with the AEM SPA Editor

Get started with the AEM SPA Editor to create apps that can be authored like a regular site; these are the best resources.

The new WKND Tutorial explains step by step how to build such an app: Getting Started with the AEM SPA Editor - WKND Tutorial

A multi-part tutorial on how to develop for the AEM SPA Editor. Walks through the implementation of a Single Page Application, written using React JS, that can be edited within Adobe Experience Manager. Covers foundation topics like project setup, component mapping, front end development tools, and application routing.

Happy Learning!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

8 replies

New Participant
Dec 30, 2019 7:27 AM UTC

Hi All

I am working on AEM React Integration project. 

I have a requirement where I need to use existing Header and footer component which are the traditional HTL component. All other components would be from react.

However, the content of HTL components is not rendering on the page in the SPA editor project.  Any suggestions?

Translate
Level 3
Nov 3, 2018 5:41 AM UTC

Hi  Team,

I tried to follow the same steps that you have mentioned but am getting an like below

I have installed the service pack also

Installed Products

Adobe Experience Manager (6.4.2.0)

Translate
New Participant
Oct 25, 2018 8:46 PM UTC

Hi,

I follow instructions on Getting Started with the AEM SPA Editor - Chapter 1.

When I Navigate to http://localhost:4502/content/wknd-events/react/home.html  on step 9,

the page is blank and there's error in browser console SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data.

I got the same error when I download source code from githup for

I'm using AEM 6.4.

Would you please help?

Thanks

Joan

Translate
Daniel_Gordon
Employee
Oct 26, 2018 9:10 PM UTC

Hi jtran15 , do you have AEM 6.4 and ServicePack 2 installed?

What happens when you navigate to http://localhost:4502/content/wknd-events/react.model.json ? Does the JSON render as expected?

Translate
New Participant
Oct 27, 2018 12:20 AM UTC

Hi,

Thank you for responding .

Yes, I have AEM6.4 and Service Pack 2 installed. http://localhost:4502/system/console/status-productinfo  shows Adobe Experience Manager (6.4.2.0).

http://localhost:4502/content/wknd-events/react.model.json returns correct json.

{

  • "title": "React App",
  • ":type": "wknd-events/components/structure/app",
  • ":items": { },
  • ":itemsOrder": [ ],
  • ":path": "/content/wknd-events/react",
  • ":hierarchyType": "page",
  • ":children": {
    • "/content/wknd-events/react/home": {
      • "title": "Home",
      • ":type": "wknd-events/components/structure/page",
      • ":items": {
        • "root": {
          • "columnCount": 12,
          • "columnClassNames": {
            • "responsivegrid": "aem-GridColumn aem-GridColumn--default--12"
            },
          • "gridClassNames": "aem-Grid aem-Grid--12 aem-Grid--default--12",
          • ":items": {
            • "responsivegrid": {
              • "columnCount": 12,
              • "columnClassNames": {
                • "image": "aem-GridColumn aem-GridColumn--default--12",
                • "text": "aem-GridColumn aem-GridColumn--default--12"
                },
              • "gridClassNames": "aem-Grid aem-Grid--12 aem-Grid--default--12",
              • ":items": {
                • "text": {
                  • "richText": true,
                  • ":type": "wknd-events/components/content/text"
                  },
                • "image": {
                  • "widths": [ ],
                  • "lazyEnabled": true,
                  • ":type": "wknd-events/components/content/image"
                  }
                },
              • ":itemsOrder": [
                • "text",
                • "image"
                ],
              • ":type": "wcm/foundation/components/responsivegrid"
              }
            },
          • ":itemsOrder": [
            • "responsivegrid"
            ],
          • ":type": "wcm/foundation/components/responsivegrid"
          }
        },
      • ":itemsOrder": [
        • "root"
        ],
      • ":path": "/content/wknd-events/react/home",
      • ":hierarchyType": "page"
      }
    }

}

Translate
Level 2
Oct 25, 2018 1:29 PM UTC

Hello, thanks for the tutorial. It's very good. But I have a problem that it's not working . The AEM version that I'm using is 6.4, I think I should be using 6.4.2, is that correct? If it is, what can I do with 6.4 version, just write components with React?

Best regards,

Ogün Adsay.

Translate
Daniel_Gordon
Employee
Oct 26, 2018 9:06 PM UTC

Yes without the ServicePack, the components won't be able to be edited in AEM.  Service Pack 2 is freely available to download and install: https://www.adobeaemcloud.com/content/marketplace/marketplaceProxy.html?packagePath=/content/companies/public/adobe/pack…

Translate
New Participant
Nov 27, 2018 7:14 PM UTC

Hi,

In Getting Started with the AEM SPA Editor - Chapter 2 - Header Component, can we have the header authorable in AEM so that the author manager can change the text without code change?

Thanks

Joan

Translate