illustrates how to set up a spring and angular project in one repo
the default task on the root project is to run the backend, so just:
./gradlew
and then open your browser to https://localhost:8080.
basically, the interesting parts of this repo are the backend and frontend build.gradle
s.
bootstrapped with:
gradle init wrapper \
--gradle-version 7.5.1 \
--distribution-type all \
--type java-application \
--test-framework junit-jupiter
and then:
(cd backend && \
spring init -d web --build gradle --format build)
and the frontend, with:
(cd frontend && \
NG_CLI_ANALYTICS=ci \
ng \
--name frontend \
--commit false \
--directory . \
--interactive false \
--package-manager npm \
--routing \
--skip-git \
--style css \
new
)
- 12/25/23 - upgrade to Gradle 8 and share outputs per Sharing Outputs.
- 12/29/22 - upgrade to Spring Boot
3.0.1
, add ability to generate native image with./gradlew nativeCompile
(requiresOpenJDK Runtime Environment GraalVM CE 22.3.0
akasdk use java 22.3.r17-grl
from sdkman)