Robinyo / vardyger-2

The Vardyger 2 Publishing Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Vardyger 2 Publishing Platform

Prerequisites

  • OpenJDK for Java 1.8
  • Git
  • Maven (I'm using 3.3.9)
  • The Eclipse IDE for Java EE Developers (I'm using Neon)
  • The Sling Launchpad

Note: This post will walk you through the steps required to install the OpenJDK for Java 1.8. This post will walk you through the steps required to install Git, Maven and the Eclipse IDE. And, this post introduces the Apache Sling Launchpad.

Download and start Apache Sling

This project requires Apache Sling.

  1. Download the Apache Sling Launchpad.
  2. Start the Launchpad by running the following command:
java -Xmx1024M -jar org.apache.sling.launchpad-8.jar

Note: The Sling Launchpad will take a few minutes to unpack, install itself, and start up.

Build

Build and deploy to a running instance of the Sling Launchpad:

cd ui.content
mvn clean install -PautoInstallBundle

Login

Navigate to http://localhost:8080/author/index.html.

You should see something like:

Author UI screenshot

Choose "New Post" and you should see something like:

Author UI screenshot

Maven Archetypes

Three Maven archetypes where used to kickstart this project (this is purely informational, you do not need to run the following commands).

  1. Create the parent pom:
mvn archetype:generate \
    -DarchetypeGroupId=org.codehaus.mojo.archetypes \
    -DarchetypeArtifactId=pom-root \
    -DarchetypeVersion=RELEASE \
    -DgroupId=org.vardyger \
    -DartifactId=vardyger \
    -Dversion=1.0.0-SNAPSHOT \
    -DinteractiveMode=false
  1. Create the "core" bundle project:
mvn archetype:generate \
    -DarchetypeGroupId=org.apache.sling \
    -DarchetypeArtifactId=sling-bundle-archetype \
    -DgroupId=org.vardyger \
    -DartifactId=core \
    -Dversion=1.0.0-SNAPSHOT \
    -Dpackage=org.vardyger.core \
    -DappsFolderName=vardyger \
    -DartifactName="core" \
    -DpackageGroup="core" \
    -DinteractiveMode=false  
  1. Create the "ui.content" content project:
mvn archetype:generate \
    -DarchetypeGroupId=org.apache.sling \
    -DarchetypeArtifactId=sling-initial-content-archetype \
    -DgroupId=org.vardyger \
    -DartifactId=ui.content \
    -Dversion=1.0.0-SNAPSHOT \
    -Dpackage=org.vardyger.ui.content \
    -DappsFolderName=vardyger \
    -DartifactName="ui.content" \
    -DpackageGroup="ui.content" \
    -DinteractiveMode=false  
  1. Create the "author" project:
ionic start author sidemenu

About

The Vardyger 2 Publishing Platform

License:Apache License 2.0


Languages

Language:JavaScript 89.2%Language:CSS 10.5%Language:TypeScript 0.2%Language:HTML 0.1%Language:Java 0.0%