Grails 2 Quick Start for macOS
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with the Latest Grails 2.x Web Framework on macOS BSD/Unix Desktop.
Grails is an Open Source, full stack, web application framework for the JVM that takes advantage of the Groovy programming language and convention over configuration to provide a productive and stream-lined development experience.
The Only Requirement for Grails 2 is an Oracle Java Development Kit 6+ Installation so Inside the Tutorial you’ll find How to Download and Install Oracle JDK for macOS.
-
Open a Command Line Terminal Window
Applications > Utilities > Terminal
(Press “Enter” to Execute Commands) -
Download Latest Grails 2.x Binary Release.
-
Double-Click on Archive to Extract.
-
Installing Grails 2 on Mac.
sudo su -c "chown -R root:root /tmp/grails*"
sudo su -c "mv /tmp/grails* /opt/grails2"
-
Append Grails2 to the User Path.
nano $HOME/.bashrc
Append:
export GRAILS_HOME=/opt/grails2/nexport PATH=$GRAILS_HOME/bin:$PATH
Load the New Path:
bash
-
How to Install Required Oracle JDK 8+ on MacOS X
-
Test Grails 2 Installation.
grails -version
-
Getting-Started with Grails 2 Web Development.
Click Here to Install Grails with HomeBrew!