...
...
drwxr-xr-x 15 jimmason staff 480 May 7 2016 test2
udemy grails course test
...
grails course test
gdrv//_work/jim-acer/blearn/grails/peblock/grails-app/controllers/peblock/UrlMappings.groovy
Grails Install
Grails Setup
cat ./setGrails4.sh
#!/bin/bash
#
echo "----------- "
echo " setGrails4.sh - adds Grails4 home to path"
echo " "
#
# $GRAILS_HOME set
export MYSQL_JDBC=/Users/jimmason/_dev/lib/mysql-connector-java-5.1.34.jar
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
export GRAILS_HOME=/Users/jimmason/_dev/grails4
export PATH=$PATH:$GRAILS_HOME:$GRAILS_HOME/bin
export CLASSPATH=$MYSQL_JDBC:$CLASSPATH
echo $PATH
Grails 3x requires JDK8 not JDK11
verify JDK is JDK8 NOT JDK11 ( the default system JDK I set )
grails --version && groovy --version
Project References
Key Concepts
...
option 2> manually copy file contents to console window
open grails console
open the file from the File menu ( nothing shows )
open the same groovy file in another text editor
copy and paste the entire contents to the console window
add a comment line
File > save
check the saved file in the text editor to see the comment line exists
Grails 4.1 M++ – Groovy 3 and JDK11
Candidate Solutions
Simple Grails CRUD app on Grails 2x
User
EBC
Account
Device
Location
Energy
Steps after Grails setup
grails createApp gtcrud1
cd gtcrud1
grails console
- add the application folder to the grails path in the console
Step-by-step guide for Example
...