Grails
▶ Grails Quickcast #8 - Grails React Profile
In this Quickcast, @ZacharyAKlein, member of the OCI Grails team, shows how to use React profile. In particular, he shows how to create a single project build, which allows users to mix React code with common Grails view technologies, such as GSP. Moreover, he discusses the different Gradle tasks bundled with the profile and the typical workflow one may use while using the profile.
Using the React Profile - Multi-Project Build
Grails Guide which shows how to create a multi-project build, with both a Grails application and a React front-end app, using the React profile for Grails.
This profile generates two applications; server and client. The server is a Grails 3 application built using the rest-api profile, which includes support for creating domain resources, restful controllers, and JSON views.
Combining the React profile projects
In this Grails Guide, you are going to create a combined build of the server and client projects from the React profile.
By default, the React profile sets up separate frontend and backend apps, which can make for a more efficient development process. However, this may not fit your deployment needs, particularly if your entire app is being deployed to a servlet container such as Tomcat, or being executed as a "fat" JAR. Thanks to the flexibility of Grails and the Gradle build tool, we can configure a unified build of our Grails/React app with only a few change
Building a React App
The previous links show how to create a single-project or a multi-project Grails + React application. Moreover, it showed us how to combine a multi-project build to ease deployment.
In this Grails Guide, we roll up our sleeves and create a simple Grails app using React as a view layer.
Creating a React app with Spring Security
If you are developing a real-world React + Grails application, you will probably need security. Grails Security Plugins ecosystem is vibrant.
In this Grails Guide you will learn how to secure your React/Grails application with Spring Security REST (using the default JWT Token authentication).
▶ Using REACT with GRAILS 3
Talk by @ZacharyAKlein at St. Louis Groovy & Grails MeetUp. Similar talk as the one he gave at GR8Conf US 2017. You can follow the video along with the Slides and Sample Code.
The first half hour is a, must watch, React introduction ( What React is, What it is not, Component State, Virtual DOM). I like in particular his introduction to JSX; a preprocessor step that adds XML syntax to JavaScript.
The last half hour of the talk is a mix of Why use React with Grails, demos, asset-pipeline, webpack, etc.
Definitely worth it, if you want to give React + Grails a try.
TODO app using React with Grails
The Software Engineering Tech Trends (SETT) is a monthly newsletter featuring emerging trends in software engineering.
This June 2016 SETT article by @ZacharyAKlein shows how to create a TODO application with Grails + React. Sample Code.
Modern Web App - Step By Step
SETT article by @ZacharyAKlein which shows how to use features such as token-based authentication, REST services, websockets, PostgreSQL in a Grails + REACT app.
If you prefer the Grails Guides format, an almost identical guide was published under the title Replacing a Node/Express API with Grails .
Comment
Once in a while, I write an issue focused on one topic. Welcome to Groovy Calamari React. This issue will layout a learning path. Do not worry, if you don't know what React is.
Groovy Calamari