You are on page 1of 6

DAY1:

 AEM Based Technologies.


 AEM Installation.
 AEM Consoles

 AEM Based Technologies:

1. JCR
2. Apache Sling
3. Apache Felix
4. OSGI

 JCR: The JCR is the storage layer or jcr is a database that looks like a file
system , it is unstructured and enables versioning and observation, jcr is
the base level of the AEM technology stack and Jcr provides services like
full text search, indexing, access control and event monitoring.

Jcr is a tree structure that contains 2 items like node,properties


Nodes Provide structure
Properties store data

 Apache Sling:  Apache Sling™ is a framework for RESTful web-


applications based on an extensible content tree. Sling maps HTTP
request URLs to content resources based on the request's path,
extension and selectors.

 Apache Felix: The Apache Felix Web Console is a simple tool to inspect


and manage OSGi framework instances using your favorite Web
Browser.
 OSGI: the full form of OSGi is the Open Service Gateway Initiative. osgi is
a Java framework that is used for developing and deploying modular
software programs and libraries.

 The main benefits of using OSGI are: osgi having everything in


bundles, so osgi reduces the complexity of the system.

 We can see bundle management in AEM at


http://:/system/console/bundles.
 OSGi makes the components loosely coupled and easy to
manage so they can be installed, deleted, updated, started,
and stopped at run time
 OSGi increases the performance of the system as unused parts
of the application will not load in the memory.

 How to Install AEM?


let’s see how can we install AEM on our local system.

 Install AEM JAR file directly.

Prerequisites

 Java 8 or 11 (11 only for AEM 6.5)


 AEM >= 6.3 (6.3, 6.4 or 6.5),
 RAM >= 4 GB (for better performance)

Steps

1. Create a directory in your system at your desired location and name it as


— AEM.
2. Create two directories in the above created directory. Name them
as author and publish.
3. Paste your AEM jar file along with your license.properties file.
4. In the author folder, name the jar file as — aem-author-p4502.jar.
5. In the publish folder, name the jar file as — aem-publish-p4503.jar.

AEM has two types of servers —

1.Author Environment - where content authors make changes to the content


and publish,

2.Publish Environment - where the end user of the website sees the content.

6. Now, navigate to the author directory and run the following command

java -
agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -
jar aem-author-p4502.jar -gui

This command runs the AEM in debug mode; which means you can debug your
code while developing. While developing on the local environment, it is always
useful to run AEM in debug mode. If you don’t want to run AEM in debug
mode then just run the following command —

java -jar aem-author-p4502.jar

7. When you first run this command, it will take some time to create the
CRX repository and load all the required stuff. After a few minutes, a
browser window will automatically open on http://localhost:4502/, and
you will see something like this -
8.Login using following credentials

Username: admin

Password: admin

10.You will now see the start screen of AEM


at http://localhost:4502/aem/start.html/. The steps are similar for the
publish instance.

You have successfully installed AEM on your local system.

 AEM Consoles : Now, we have AEM server up and running, We will see
important consoles one by one.
 AEM Home Screen: Here, we can find icons for different consoles in
AEM. It looks like as follows -

 AEM Sites Console: This console will display the pages of the websites
that we will create.

Localhost:4502/sites.html/content

 Felix Console: This console is the one where you can see all the OSGi
bundles — both out of the box and your custom ones. It has various
other consoles which we will see gradually.

Localhost:4502/system/console/bundles
 CRX/DE: CRX DE stands for Content Repository eXtreme Development
Environment. It is an implementation of JCR and here we can see the
nodes and properties. We can also develop code here.

Localhost:4502/crx/de
There are many other consoles in AEM, but these are the most important and
a developer interacts with them frequently.

AEM Sites has three main components -


 Templates — Using templates we can specify layout of a web page.We
can have both static and editable templates.
 Pages — Any number of pages can be created using template(s). Actual
content of the website goes on the pages.
 Components — These are the building blocks of web-pages. These
define a small portion of the page and can be dragged and dropped..

The development team has to develop the components once, and then they
can be used multiple times on any page.

You might also like