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.
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.
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
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.
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).
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 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.