A blogging engine written for Apache Sling 8.
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.
core
dispatcher
ui.apps
.gitignore
LICENSE
README.md
pom.xml

README.md

About

Slick is a beautiful app to help create exceptional web content. It's highly optimized for blogging.

It's built on top of Sling, HTL, Oak, OSGi and many other frameworks common to Adobe Experience Manager.

CircleCI

Sling and Slick

Demo

slick.millr.org | experiencemanaged.com

Features

  • Creating and editing posts, pages, and media
  • Post and Page Scheduling
  • WYSIWYG Editor
  • RSS 2.0 Feed
  • Authentication and user management
  • Search
  • Dispatcher Caching
  • Analytics, SEO, and social integrations
  • Pagination
  • Basic Localization
  • Comment support with ReCAPTCHA
  • International Language Support (UTF-8 Readiness)

Requirements

Installation

1. Run Sling

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

2. Install Slick

mvn clean install -PautoInstallBundle

3. Make things

http://localhost:8080

Advanced Installation

Debug Run

java -Xmx1024M -agentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=n -jar org.apache.sling.launchpad-8.jar

Install With Options

mvn clean install -PautoInstallBundle -Dsling.host=YOURHOST -Dsling.password=YOURPASSWORD -Dsling.port=YOURPORT

Authoring

Located at http://localhost:8080/author.html (admin:admin)

Apache Configuration

<VirtualHost *:80>
    ServerName slick.millr.org
    ProxyPreserveHost On
    ProxyPass / http://localhost:8080/ connectiontimeout=5 timeout=300
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

RewriteEngine on

# Rewrite the homepage to posts
RewriteRule ^/$ /content/slick/publish/posts.html [PT,L]

# Rewrite Fav Icon
RewriteRule ^/favicon.ico$ /etc/slick/designs/slick/dist/img/favicon.ico [PT,L]

# Rewrite our Robots
RewriteRule ^/robots.txt$ /etc/slick/designs/slick/dist/txt/robots.txt [PT,L]

# Rewrite our author 
RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/bin
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/home
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/tmp
RewriteCond %{REQUEST_URI} !^/var
RewriteCond %{REQUEST_URI} !^/system
RewriteRule ^/author(.*)$ /content/slick/author$1 [PT,E,L]

# Rewrite everything else to publish
RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/bin
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/home
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/tmp
RewriteCond %{REQUEST_URI} !^/var
RewriteCond %{REQUEST_URI} !^/system
RewriteRule ^/(.*)$ /content/slick/publish/$1 [PT,E,L]
RewriteRule ^/content/slick/publish/(.*)$ /$1 [R=301,NC,L]

Dispatcher

  1. In settings (author/settings.html) turn on dispatcher.
  2. Editing content or changing settings will automatically trigger a cache flush.
  3. If ui.apps has changed, you should flush the UI cache.
  4. You can find a sample dispatch.any file at dispatcher/dispatcher.any

Back-End Development

Applies to Java / HTL

  1. Open Eclipse
  2. Import Maven project
  3. Install the org.apache.sling.tooling.support.install bundle to your Sling instance.
  4. Setup new Sling Server in Eclipse.
  5. Add your projects (core, ui.apps)
  6. Start buidling great things.
  7. Change the password at {YOUR-WORKSPACE}/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml if needed.

Front-End Development

Applies to SCSS / JS / IMG / TXT

During autoInstallBundle, all JS and SCSS are concatenated, minified, and installed. However, if you want to work without running maven for every change, you can run gulp to push changes to Sling automatically.

  1. Install gulp and gulp-cli.
  2. In ui.apps, install all additional front-end dependencies using npm install.
  3. In ui.apps run gulp.
  4. Start buidling great things in ui.apps/src/main/resources/jcr_root/etc/slick/designs/...
  5. You can also specify arguments when running gulp. Example: $ gulp --slingHost='slick.millr.org' --slingPort=8181 --slingPass=MySuperPassword --slingUser=cmillar