Grails MariaDB In Action

To initiate the compile step issue the following command. [codesyntax lang=”bash”] grails compile [/codesyntax] To create the domain class issue the following command. [codesyntax lang=”bash”] grails create-domain-class ttd [/codesyntax] Navigate to the following domain and modify it to reflect the following. [codesyntax lang=”cpp”] package demo01 class Ttd { String name Date startDate Date endDate Boolean […]

Grails

Grails is a web application framework that is based on the popular programming language, Groovy. Some of the advantages of using Grails are: Rapid Application Development: Grails offers a high level of abstraction and convention over configuration that allows developers to build applications quickly and easily. Built on Spring and Hibernate: Grails is built on […]

String Array To File

The code below allows the contents of a collection of strings to be written to a text file. [codesyntax lang=”cpp”] void grailsGenFrame::saveBuild() { out.Open(“/home/archman/workspace/grails/grailsSkel/build.gradle2”); for (size_t i=0; i < str.Count(); i++) { out.AddLine(str[i]); } out.Write(); out.Close(); } [/codesyntax] Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Grails and MariaDB

To create a grails project with MariaDB support go to the base directory for grails projects and issue the following command. [codesyntax lang=”bash”] grails create-app yourProjectName [/codesyntax] Change directory to yourProjectName and edit the build.gradle. Include the following dependency ” runtimeOnly ‘org.mariadb.jdbc:mariadb-java-client:2.7.4′”.  Save the file and issue the following command “grails compile”. You should now […]

Grails Tasks

To establish a class domain for tasks issue the following command. [codesyntax lang=”bash”] grails create-domain-class tasks [/codesyntax] To fill in the details on the domain key in the following. [codesyntax lang=”bash”] class Tasks { String name Date startDate Date endDate Boolean comp static constraints = { } [/codesyntax] To generate scaffonding for the tasks class […]

Install Grails Archlinux

To install Grails on Archlinux issue the following command. [codesyntax lang=”bash”] yay -S grails [/codesyntax] To check the version of Grails installed issue the following command. [codesyntax lang=”bash”] grails –version [/codesyntax] Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article. Click here

BCS SDK Manager Install

The Software Development Kit Manager SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. Formerly known as GVM the Groovy enVironment Manager, it was inspired by the very useful […]

BCS Linux Mint Installation

Linux Mint is the operating system for choice for software development platform. Primary IDE include Eclipse for JavaFX, PhP and c++.  Anaconda along with Spyder is available for Python development. Wt (pronounced witty) is available for web application development. A Grails stack is also available for additional Java application development. LAMP is also operational. This […]

BCS Grails, MySQL and Spring Security

The Grails environment for this example is Grails 3.2.2, Groovy 2.4.7 and JVM 1.8.0_92. This tutorial will demonstrate how to create a new Grails project, enable MySQL database and Spring Security.  To begin the process create a new Grails project entitled “books” minus quotes. To review how to accomplish this see the tutorial here.  Next […]