This repository provides a template for a pre-configured project with Spring Boot, Thymeleaf, Webflux, Gulp, Webpack, Tailwind and Prettier, providing a straightforward development experience.
- Java 21
- Gradle 8.7
- Node and NPM
-
Clone this repository:
git clone https://github.com/pauloRohling/spring-thymeleaf-template.git
-
Navigate to the project directory and install the dependencies:
cd ./src/main/javascript npm install
To run the project in development mode:
-
Ensure you are in the
./src/main/javascript
directory -
Run the following command to start the Gulp watch task:
npm start
-
Run the Spring Boot application
To format the code with Prettier:
-
Ensure you are in the
./src/main/javascript
directory -
Run the following command to format the code:
npm run format
To build the project for production:
-
Ensure you are in the
./src/main/javascript
directory -
Run the following command to build the assets:
npm run build
-
Navigate to the root directory of the project
-
Run the following command to build the project:
./gradlew build
-
The built project will be available in the
./build/libs
directory.
- Spring Boot Version: 3.2.5
- Included Libraries: Thymeleaf, Webflux, Actuator, Lombok
- Frontend Tools: Gulp v5.0.0, Webpack v5.91.0
- CSS Framework: TailwindCSS v3.4.3
- Code Formatter: Prettier v3.2.5