A demo application for NEBA (http://neba.io) for Apache Sling
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README Improved contact controller sample Aug 17, 2016
launchpad NEBA 5.0.2 Dec 10, 2018
src/main Transitioned from JSP to HTL (Sightly) where applicable. Oct 2, 2018
thirdparties - Removed deprecated views Aug 18, 2016
.gitignore Updated gitignore Sep 26, 2016
README.md NEBA 5.0.0 release preparation Jul 19, 2018
pom.xml NEBA 5.0.2 Dec 10, 2018

README.md

NEBA Directive: a sample application for the NEBA framework for Apache Sling

This project demonstrates core concepts and features of the NEBA framework for Sling. It provides a demonstrative mini WEB application for the beautiful responsive directive template set by http://html5up.net.

NEBA Directive: A sample application for NEBA for Sling

What this sample application is

This application demonstrates how NEBA can be used to model resources in Sling and use Spring's MVC features for Apache Sling.

What this sample application is not

A ready-to-use web application. It has purely been designed to demonstrate NEBA features.

How to run this application

  1. Build the Neba Sample bundle in the root directory with mvn install
  2. Build the Neba Sample Launchpad in the launchpad directory with mvn install
  3. Start your Neba Sample Launchpad in the launchpad directory with mvn slingstart:start (Can be stopped again by pressing any key)
  4. Open http://localhost:8080/content/neba-sample.html or browse NEBA's Model registry,Model statistics or examine logfiles using NEBA's log viewer.
  5. You may login with any sling user, e.g. using admin/admin for the default administrative account.
  6. To configure the SMTP settings for the contact form, see /system/console/configMgr, "io.neba.sample.mail" and "NEBA sample project contact email sender".

The anatomy of this app

The NEBA sample app is an OSGi bundle. It contains application code (Java POJOs, Services annotated with SCR metadata, NEBA models) in the "to.adapt.neba" package.

The bundle is blueprint-enabled as it provides a blueprint context xml file in OSGI-INF/blueprint.

In addition, the bundle provides JCR content, views, images and configurations via Sling content loading. The respective content is contained in the SLING-INF/content folder and is loaded into the repository as specified by the Sling-Initial-Content header values defined in the pom.xml.

Furthermore, the bundle directly provides static resources via the Sling-Bundle-Resources header value defined in the pom.xml.