The project was created with:
```bash
mvn archetype:generate -Dfilter=info.magnolia.maven.archetypes:magnolia
```
The `magnolia-project-archetype` was chosen
The version chosen when prompted was 1.3
The top level pom.xml file was updated to use DX Core
The second level pom.xml was updated to use magnolia-dx-core-webapp option
The server does not have a public instance as this is for evaluation purposes only therefore the following configuration was set to prevent issues with publishing and creating users:
modules/publishing-core/config/receivers/magnoliaPublic8080/enabled = false
CORS was configured:
The `addCORSHeaders` file from the hello-headless project[1] was imported and moved directly after the uriSecurity node
The url of a page being edited in the WYSIWYG is:
http://<domain>/magnoliaAuthor/.magnolia/admincentral#app:pages-app:detail;/mpa-home:edit
The 404 url in the browser console is:
<http://<domain>/magnoliaAuthor/.rest/template-definitions/v1/mpa-lm:pages/Home>
The response body is:
{"error":{"code":"notFound","message":"Could not find resource for full path: http://<domain>/magnoliaAuthor/.rest/template-definitions/v1/mpa-lm:pages/Home"}}
The index.js file in the client has the following defined:
```
const nodeName = 'mpa-home';
const config = {
componentMappings: {
'mpa-lm:pages/Home': Home,
'mpa-lm:pages/Basic': Basic,
'mpa-lm:components/Text': Text,
'mpa-lm:components/List': List,
'mpa-lm:components/Item': Item,
},
};
```
I was suspicious that the relevant default module was missing but apparently not as the following does exist:
<http://<domain>/magnoliaAuthor/.magnolia/admincentral#app:resources:view;/spa-rendering/restEndpoints/templateDefinitions/templateDefinitionEndpoint.yaml:edit>
The resource file exists on the server
<http://<domain>/magnoliaAuthor/.magnolia/admincentral#app:resources:edit;/mpa-lm/templates/pages/Basic.yaml:edit>
```
title: mpa Basic
templateScript: /mpa-lm/webresources/build/index.html
renderType: spa
class: info.magnolia.rendering.spa.renderer.SpaRenderableDefinition
areas:
main:
title: Main area
availableComponents:
text:
id: mpa-lm:components/Text
```