This is an example of a simple Angular front-end/Springboot backend webapp
- Run
gradle copyWebApp bootRunto make it work. - frontend at http://localhost:8080
- You can get to backend DB at http://localhost:8080/h2-console (sa/password, add some persons?)
- make copyWebApp a dependsOn of bootJar
- add DB content (its currently empty)
- 2 subprojects - Springboot/Gradle backend (starts, says 'hello'); 'Hello world' Angular frontend
- Gradle now works - parent project builds angular + puts output into Springboot
- Simple Springboot-JPA - one entity in H2 DB
- Angular material table populated from Springboot REST
- Windows
- Corretto Java 17
- Gradle 8.7 (on PATH)
- Node.js 22.2.0 installed
- angular CLI installed (
npm install @angular/cliin frontend directory)
- ng is
frontend/node_modules/.bin/ng - had to install material theme (
ng add @angular/materialin frontend) - If you want to debug stuff, run Springboot, then
ng servethe frontend + browse to http://localhost:4200 - there's a proxy for /api through to the backend