In this section we are going to make our local system ready to install and develop the demo projects.
If Node.js, NPM and Java v8 (JRE SE) (On Windows, the JDK is required) are already installed on your computer, you can jump directly to the installation of the Magnolia CLI.
There is no Java Programming required to develop applications with Magnolia.
However Magnolia does require the Java Environment (JRE) version 8 or higher. Type
java -version in a terminal or command prompt. If the system reports a version number, Java is installed on your computer.
If you don't have Java, install it on your system.
First update homebrew
Then install java
java -version to verify your installation.
Alternatively you can Download the latest Java from Oracle Website.
Setup Node.js and npm
node --v and
npm --v in a terminal or command prompt. If the system reports a version number, Node.js and npm are installed on your computer.
If Node.js and/or npm is not installed you can follow these instructions.
Our system is prepared and ready. Next install the Magnolia CLI.
Install Magnolia CLI
The Magnolia Commandline Interface (CLI) helps you to download, install and start Magnolia. It also provides many handy tools for developing Light Modules
Depending on your permissions and the Node.js installation location, you may have to execute the above command with root permissions. On Linux or OS-X, to run this command as root, use:
Test that it is installed correctly:
You can find more information in the Magnolia CLI Documentation.
Your system is ready to go
Let's build a headless app, shall we?