2 Getting Started
In this guide you are going to create Grails app using React as a view layer. You will be using the 1.0.2 version of the React profile (single project, using Webpack and the Asset Pipeline).
A few changes were made to the initial project (compared to a default Grails project using the 1.0.2 version of the React profile). A patch file containing the changes is provided in the guide repo.
2.1 What you will need
To complete this guide, you will need the following:
-
Some time on your hands
-
A decent text editor or IDE
-
JDK 11 or greater installed with
JAVA_HOMEconfigured appropriately
2.2 How to complete the guide
To get started do the following:
-
Download and unzip the source
or
-
Clone the Git repository:
git clone https://github.com/grails-guides/building-a-react-app.git
The Grails guides repositories contain two folders:
-
initialInitial project. Often a simple Grails app with some additional code to give you a head-start. -
completeA completed example. It is the result of working through the steps presented by the guide and applying those changes to theinitialfolder.
To complete the guide, go to the initial folder
-
cdintograils-guides/building-a-react-app/initial
and follow the instructions in the next sections.
You can go right to the completed example if you cd into grails-guides/building-a-react-app/complete
|