Skip to content

alexanderankin/angular-spring-boot-single-repo

Repository files navigation

Angular Spring Boot monorepo

illustrates how to set up a spring and angular project in one repo

Usage

the default task on the root project is to run the backend, so just:

./gradlew

and then open your browser to https://localhost:8080.

Implementation

basically, the interesting parts of this repo are the backend and frontend build.gradles.

Project Setup

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 
)

changelog

  • 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 (requires OpenJDK Runtime Environment GraalVM CE 22.3.0 aka sdk use java 22.3.r17-grl from sdkman)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published