A simple full-stack template featuring Angular for the frontend and Java Spring Boot for the backend.
backend/: Spring Boot application.frontend/: Angular application.pom.xml: Root Maven descriptor managing both modules.Dockerfile: Multi-stage build for the entire application.
- Java 25
- Maven 3.9+
- Node.js & pnpm (managed by Maven during build)
-
Run the Backend:
cd backend mvn spring-boot:run -
Run the Frontend:
cd frontend pnpm install pnpm start
To build the entire project (frontend + backend) and package it into a single executable JAR:
mvn clean packageThe resulting JAR will be located in backend/target/.
You can build and run the application using Docker:
docker build -t starter-simple-java .
docker run -p 8080:8080 starter-simple-javaThe application will be available at http://localhost:8080.
- Single Command Build: Build both frontend and backend with a single
mvn clean package. - SPA Support: Integrated
SpaControllerin Spring Boot to handle Angular routing. - Dockerized: Ready to be deployed as a container.