website - Core

Core bundle for website

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

com.sinnerschrader.vw.aem.react
ArtifactId

ArtifactId

core
Last Version

Last Version

0.23.1
Release Date

Release Date

Type

Type

bundle
Description

Description

website - Core
Core bundle for website

Download core

Dependencies

compile (10)

Group / Artifact Type Version
com.sinnerschrader.vw.aem.react : aem-react-api jar 0.23.1
com.fasterxml.jackson.core : jackson-core jar 2.5.3
com.fasterxml.jackson.core : jackson-annotations jar 2.5.3
com.fasterxml.jackson.core : jackson-databind jar 2.5.3
commons-io : commons-io jar 2.4
org.apache.commons : commons-lang3 jar 3.4
org.apache.commons : commons-pool2 jar 2.4.2
org.apache.sling : org.apache.sling.commons.json jar 2.0.10
org.jsoup : jsoup jar 1.8.3
io.dropwizard.metrics : metrics-core jar 3.2.5

provided (11)

Group / Artifact Type Version
org.apache.felix : org.apache.felix.scr jar 1.6.0
org.apache.felix : org.apache.felix.scr.annotations jar 1.9.12
biz.aQute : bndlib jar 1.43.0
org.osgi : org.osgi.core jar 5.0.0
org.osgi : org.osgi.compendium jar 5.0.0
org.slf4j : slf4j-api jar 1.7.6
javax.jcr : jcr jar 2.0
javax.servlet : servlet-api jar 2.4
org.apache.sling : org.apache.sling.api jar 2.16.2
com.adobe.aem : uber-jar jar 6.3.0
org.apache.sling : org.apache.sling.models.api jar 1.2.0

test (5)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.6
junit : junit jar 4.12
org.mockito : mockito-all jar 1.9.5
junit-addons : junit-addons jar 1.4
org.apache.sling : org.apache.sling.testing.sling-mock jar 2.2.0

Project Modules

There are no modules declared in this project.

Adobe Experience Manager ("AEM") components written in React


This project makes it possible to render Adobe Experience Manager ("AEM") components via React.

STATUS

Build Status Maven Central

  • Version: 0.4
  • API is unstable

Documentation

An comprehensive documentation is being developed.

Deploy / install the demo

You can download the demo content package from here and deploy it to your local AEM instance. View the demo

To install the demo locally:

git clone https://github.com/sinnerschrader/aem-react.git

cd aem-react

mvn clean install -PautoInstallPackage -Dgpg.skip=true

##Trouble shooting

Nashorn engine erro: "No such function renderReactComponent"

Check configuration of ReactScriptEngine in webconsole:

  • go to /system/console/configMgr
  • search for "react" in the browser
  • open the configuration of "ReactJs Script Engine Factory"
  • important: jcr path must be "/etc/designs/react-demo/js/react-demo/server.js/jcr:content"
  • if it is not then update it.

Background

Nowadays every web application contains at least some highly interactive ui components that are implemented via javascript in the client.

React is one of the most popular javascript web frameworks today. React makes client-side web application development as easy as good old server side web development because of its "render everthing" ansatz. The developer doesn't need to think about the minimal set of dom manipulations to get to the next state of the ui but instead defines the new state and the framework handles the dom manipulation.

React can be directly used in conjunction with AEM for client-side tasks. Unfortunately that means that the dom that Reactjs handles will not be rendered on the server and thus will not be available on first page load and requires extra work to be indexable by search engines. This project makes it possible to render AEM components with React on the server.

License

MIT

Contribution

Contributions are welcome!

The repository contains the OSGI bundle in the folder core. In the folder demo is a demo project that can be used as a starting point for your own project.

OSGI core bundle

The maven module in ./core contains the implementation of the AEM component type and the pool of nashorn engines.

Demo content package

The maven module in ./demo defines a demo content package that includes some example components and demo pages.

Javascript library

The javascript library is required and integrated by the build tools in the demo project.

Dependencies

  • = Java 8 (Oracle JDK with nashorn engine)

  • = AEM 6.0

com.sinnerschrader.vw.aem.react

SinnerSchrader

We love people who love building things.

Versions

Version
0.23.1
0.23.0
0.22.0