{"id":5959,"date":"2014-01-16T05:04:37","date_gmt":"2014-01-15T18:04:37","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=5959"},"modified":"2020-08-21T10:07:03","modified_gmt":"2020-08-21T00:07:03","slug":"netbeans-grails-groovy-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/netbeans-grails-groovy-primer-tutorial\/","title":{"rendered":"NetBeans Grails Groovy Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/NetBeans\/GrailsGroovy\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"NetBeans Grails Groovy Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/NetBeans\/GrailsGroovy\/Grails_Groovy_Primer-99of.jpg\" title=\"NetBeans Grails Groovy Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">NetBeans Grails Groovy Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s NetBeans (IDE) Grails (framework) Groovy (programming language) Primer tutorial shows a simple application project using Groovy with a Grails framework, which is an environment with similarities to Java.   Let&#8217;s see below some of what Wikipedia says about Grails.<\/p>\n<blockquote><p>Grails is an open source web application framework that uses the Groovy programming language (which is in turn based on the Java platform). It is intended to be a high-productivity framework by following the &#8220;coding by convention&#8221; paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer.[citation needed]<\/p>\n<p>Grails was previously known as &#8216;Groovy on Rails&#8217;; in March 2006 that name was dropped in response to a request by David Heinemeier Hansson, founder of the Ruby on Rails framework.[1] Work began in July 2005, with the 0.1 release on March 29, 2006 and the 1.0 release announced on February 18, 2008.<\/p><\/blockquote>\n<p>Programming <a target=_blank title='IDE information from Wikipedia' href='http:\/\/een.wikipedia.org\/wiki\/IDE\u200e'>IDE<\/a>s take a lot of the hard work out of tasks such as compiling and linking in languages such as Java, C, C++, VB.Net, C# and Groovy (as for our tutorial today).   In the case of NetBeans IDE, which this blog reintroduces to you today (its customary to shake hands, and no <a target=_blank title='pardon?' href='http:\/\/www.youtube.com\/watch?v=SGZV6fsotYo'>Klingon<\/a> is necessary), it can create a Groovy Web Application using a Grails framework and Apache TomCat web server, for instance, as we do today to create a Hello World plus Blog Iframe web application.   To cut a long story short, there aint nothin&#8217; wrong with a good ol&#8217; IDE, but beware of IDEs in <a target=_blank title='Ides of March' href='https:\/\/www.youtube.com\/watch?v=Je0gTnheVe4'>March<\/a>.<\/p>\n<p>In saying that about IDEs, and how they make programming easier, often with Open Source programming, it is advantageous to know what goes on &#8220;under the hood&#8221; (or even &#8220;in the &#8216;hood&#8221; &#8230; chortle, chortle).   So if you ever get an opportunity to get helped creating your own makefile (or make it yourself, even with the <a target=_blank title='Sweet Green Icing' href='http:\/\/www.youtube.com\/watch?v=CPMpeNDIGdk'>Sweet Green Icing<\/a> &#8230; knew it could be worked in!) for something, take the opportunity to learn how to do this, as the Open Source world will become a little easier to navigate with such types of knowledge.   You&#8217;ve got to admire those early designers of computer languages, and those days when all you had was this tiny bit of memory (<a target=_blank title='64k' href='http:\/\/www.crashonline.org.uk\/39\/z88.htm'>64k<\/a> or <a target=_blank title='Voyager computer system' href='http:\/\/www.activeastronomy.org\/Home\/daniel'>&#8220;into the heliosphere on 8,000 bytes of memory&#8221;<\/a>) to play with to create your program. <\/p>\n<p>So here, <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/NetBeans\/GrailsGroovy\/\">today<\/a>, we show a Grails and Groovy installation in a Mac laptop Terminal bash environment.<\/p>\n<p>NetBeans can be an IDE for much more than Groovy (on Grails)  &#8230; it can supervise Java and other Maven language assists, PHP, C++ and HTML\/Javascript.<\/p>\n<p>Link to downloadable NetBeans Grails web application Groovy programming source code at <a target=_blank title='index.gsp' href='http:\/\/www.rjmprogramming.com.au\/NetBeans\/GrailsGroovy\/index.gsp_GETME'>index.gsp<\/a><\/p>\n<p>Link to Groovy information from <a target=_blank title='Groovy information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Groovy_%28programming_language%29'>Wikipedia<\/a>.<\/p>\n<p>Link to Groovy <a target=_blank title='Groovy download' href='https:\/\/groovy.apache.org\/download.html'>download<\/a> (what used to have associations with <a target=_blank title='Codehaus projects' href='https:\/\/projectmanagernews.com\/general\/most-important-projects-codehaus\/#http:\/\/groovy.codehaus.org\/Download'>Codehaus<\/a>, thanks) led to <a target=_blank title='GVM' href='http:\/\/gvmtool.net\/'>GVM<\/a> install for Mac laptop Terminal bash led to Grails install.<\/p>\n<p>Link to Grails information from <a target=_blank title='Grails information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Grails_%28framework%29'>Wikipedia<\/a>, from where the quote above originated.<\/p>\n<p>Link to Grails &#8220;spiritual home&#8221; from <a target=_blank title='Grails home' href='http:\/\/grails.org\/'>Pivotal<\/a>.<\/p>\n<p>Link to NetBeans &#8220;spiritual home&#8221; download page at <a target=_blank title='NetBeans download page' href='https:\/\/netbeans.org\/downloads\/'>NetBeans<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d5959' onclick='var dv=document.getElementById(\"d5959\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=NetBeans\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d5959' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s NetBeans (IDE) Grails (framework) Groovy (programming language) Primer tutorial shows a simple application project using Groovy with a Grails framework, which is an environment with similarities to Java. Let&#8217;s see below some of what Wikipedia says about Grails. Grails &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/netbeans-grails-groovy-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,24,37],"tags":[87,536,545,558,833,997,1319,1402],"class_list":["post-5959","post","type-post","status-publish","format-standard","hentry","category-elearning","category-netbeans","category-tutorials","tag-apache-tomcat","tag-grails","tag-groovy","tag-hello-world","tag-netbeans","tag-programming","tag-tutorial","tag-web-application"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5959"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=5959"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5959\/revisions"}],"predecessor-version":[{"id":50035,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5959\/revisions\/50035"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=5959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=5959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=5959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}