
ofiles.react.5.0.2.source-code.profile.yml Maven / Gradle / Ivy
description: A profile for creating a Grails application with a React frontend
instructions: |
This profile provides a client/server multi-project build structure. The server Grails app is using the rest-api profile with CORS enabled. It can be started using 'grails run-app' or using the Gradle wrapper:
./gradlew server:bootRun
The React client app has been built using the create-react-app CLI. It can be started via 'npm start' (in which case you will need to run 'npm install' to install npm dependencies) or using the Gradle wrapper (which will install npm dependencies automatically if needed):
./gradlew client:start
The client app's build.gradle defines other tasks to test and build the app using react-scripts. Please see create-react-app's documentation for more information: https://github.com/facebookincubator/create-react-app
For support, please use the Groovy Community Slack (https://groovycommunity.slack.com/) or open an issue on Github: https://github.com/grails-profiles/react/issues
skeleton:
excludes:
- gradlew
- gradlew.bat
- gradle/
parent:
target: server
features:
defaults:
- hibernate5
required:
- json-views
build:
repositories:
- "https://plugins.gradle.org/m2/"
plugins:
- war
- org.grails.grails-web
- com.github.node-gradle.node
excludes:
- org.grails.grails-core
dependencies:
- scope: build
coords: "com.github.node-gradle:gradle-node-plugin:1.3.0"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy