Skip to content

zalabbad/Spring-Boot-with-Gradle-and-Tailwind-CSS-Project-Template

Repository files navigation

Spring Boot with Gradle and Tailwind CSS Project Template

About this Template

To generate a Spring Boot web project with Tailwind CSS and live reload, you can use ttcli. This tool generates Maven projects with Tailwind CSS and live reload support out of the box. This template was originally generated by ttcli but has been converted to use Gradle instead of Maven.

Features


How to Run the Application

1. Backend (Spring Boot)

  1. Clone the repository.
  2. Open the project in your favorite IDE.
  3. Ensure you have JDK 21 set as the Java SDK.
  4. Run the backend server using:
./gradlew bootRun

2. Frontend (Node.js and Tailwind CSS)

  1. Install Node.js dependencies:
npm install
  1. Build the frontend assets for development:
npm run build

This will copy and process all relevant frontend resources (HTML, CSS, JS, SVG) into the build/resources/main directory. 3. Optionally, start the file watcher for live reloading during development:

npm run watch
  1. For serving the app with hot-reload on file changes, run:
npm run watch:serve

The browser will automatically reload on file changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published