This project is a full-stack application template, featuring a Spring Boot backend and an Angular frontend, orchestrated using Docker Compose.
- Spring Boot Backend: Robust and scalable backend built with Java and Spring Boot.
- Angular Frontend: Modern and responsive user interface developed with Angular.
- PrimeNG Styling: Elegant and modern UI components for the frontend.
- Docker Compose: Easy setup and deployment of both backend and frontend services.
- Java
- Spring Boot
- Maven
- Docker
- Angular
- TypeScript
- SCSS
- PrimeNG (UI Component Library)
- Docker
- Docker Compose
Before you begin, ensure you have the following installed:
- Git
- Docker Desktop (includes Docker Engine and Docker Compose)
- Node.js (LTS version recommended) and npm (for frontend development)
- Java Development Kit (JDK) 17 or higher (for backend development)
- Maven (for backend development)
Follow these steps to get your development environment running.
git clone <repository_url>
cd templateSpringAngularThe easiest way to get the entire application up and running is by using Docker Compose.
docker-compose up --buildThis command will:
- Build the Docker images for both the backend and frontend.
- Start the backend service (Spring Boot).
- Start the frontend service (Angular).
Once the services are up, you can access the frontend application at http://localhost:80 (or the port configured in docker-compose.yml).
If you prefer to run the backend and frontend separately without Docker Compose, follow these steps:
- Navigate to the backend directory:
cd bend - Build the Spring Boot application:
mvn clean install
- Run the application:
The backend will typically run on
mvn spring-boot:run
http://localhost:8080.
- Navigate to the frontend directory:
cd fend - Install npm dependencies:
npm install
- Run the Angular development server:
The frontend will typically open in your browser at
ng serve --open
http://localhost:4200.
bend/: Contains the Spring Boot backend application.fend/: Contains the Angular frontend application.docker-compose.yml: Defines the services for Docker Compose orchestration.
The frontend is styled using PrimeNG, a rich set of UI components for Angular. The Aura theme is configured to provide a modern and elegant look and feel.
Contributions are welcome! Please feel free to submit pull requests or open issues.
This project is licensed under the MIT License - see the LICENSE file for details. (Note: A LICENSE file is not included in this template, but it's good practice to add one.)