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.
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>
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>
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