deepthinkit / patternlab-for-sling-demo

MIT License
9 stars 0 forks source link

Pattern Lab For Sling - demo

Pattern Lab For Sling

Overview

This is an example Sling application codebase that can be used to demo Pattern Lab For Sling

The HTML files present in the application was created by translating Mustache templates from original Pattern Lab demo to HTL language.

Maven configuration of the application is also integrated with Gulp front end build tool for Sass files generation on build so this project can be used as a base for building Sling application following atomic design.

Installation

Requirements

1. Run Sling

java -jar org.apache.sling.launchpad-8.jar

By default, it is running on port 8080, you can change it with -p parameter:

java -jar org.apache.sling.launchpad-8.jar -p <port>

2. Check out Pattern Lab For Sling code and install Pattern Lab

mvn clean install -PautoInstallBundle

The code can be check out using this link: https://github.com/deepthinkit/patternlab-for-sling.git

Optionally, you can also override default connection parameters:

mvn clean install -PautoInstallBundle -Dsling.host=<host> -Dsling.port=<port> -Dsling.user=<user>  -Dsling.password=<password>

3. Check out Pattern Lab For Sling demo code and install Pattern Lab

mvn clean install -PautoInstallBundle

Optional parameters mentioned in second point can be also applied for this build.

After installation, you can access Pattern Lab demo under this link:

http://<sling.host>:<sling.port>/etc/pattern-lab/pattern-lab-demo.html