The tool allows selecting various options when you create a project:
The tool integrates with the API of https://start.spring.io/ to generate the base Spring Boot project. You select your group id, artifact id and project name just like on the website. Further, you can also select the Spring Boot version to use.
After that, you can select either "NPM based" or "NPM based with Tailwind CSS support" for the live reloading.
As a third step, select what frontend libraries you want to use. There is currently support for the following libraries:
AlpineJS - Lightweight reactive client-side scripting framework.
Shoelace - Web component library that provides a set of customizable, modern, and accessible UI components, such as buttons, forms, and modals, designed to be easily integrated into web applications and websites.
If you selected to use Tailwind CSS, then the CLI will allow you configure some plugins for Tailwind:
@tailwindcss/typography - Ability to style HTML that you don’t control
@tailwindcss/forms - A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities
@tailwindcss/container-queries - A plugin for Tailwind CSS v3.2+ that provides utilities for container queries.
DaisyUI - A component library for Tailwind CSS
Here is a screencast of the tool in action:
Once the project is generated, you can open it in your favorite editor and get started on your project.
HELP.md file contains some extra information on how to get started.
If you want to learn more about the tool itself, the source code is open source and can be viewed at https://github.com/wimdeblauwe/ttcli.
I’d like to thank the following projects:
Without those projects, this tool would probably not exist.
Start your next Spring Boot with Thymeleaf project quickly by using the ttcli command line tool. This tool is used in Taming Thymeleaf as well, and will be used a lot in my upcoming book Modern Frontends with Htmx.
If you have any questions or remarks, feel free to post a comment at GitHub discussions.