r/SpringBoot • • Oct 01 '24

Which frontend to use for SpringBoot?

I recently learned backend in SpringBoot and have very little knowledge of the front end, only HTML, CSS, and Javascript(Beginner).
Please let me know which technology I should use for the frontend. What are the frontend technologies used by the industry where they have a backend in SpringBoot?

26 Upvotes

42 comments sorted by

View all comments

32

u/xsreality Oct 01 '24

I prefer HTMX with Thymeleaf. Anything to avoid seeing the node_modules folder.

4

u/JustHereForTheCh1cks Oct 01 '24

Htmx plus thymeleaf it is. :)

2

u/hsoj48 Oct 01 '24

Htmx and Mustasch is so much easier.

2

u/hillywoodsfinest87 Oct 01 '24

I was just looking into this coming across Moustache, you happen to have any links to good resources to explore this?

4

u/hsoj48 Oct 01 '24

Here is the Java implementation with added bells and whistles. To note, Mustache claims to be logicless but JMustache adds support for functions.

https://github.com/samskivert/jmustache

Then there is the general documentation for Mustache which is all of a few pages long and very useful.

http://mustache.github.io/mustache.5.html

1

u/hillywoodsfinest87 Oct 01 '24

Thanks man! You also have any with the combination of Mustache and htmx?

4

u/hsoj48 Oct 01 '24

They are mostly separate from one another. Use Mustache for your templates. Htmx is mainly for simplifying Ajax calls which you may not even need, depending on what you are doing.

1

u/hillywoodsfinest87 Oct 01 '24

All right, currently using thymeleaf with htmx and never worked with any other template engine so guess ill be entertained first with your links before needing htmx functionality.

2

u/Kango_V Oct 02 '24

I prefer JStachio. Mustache based with annotation processors. You don't even need the library at run time :)

1

u/hsoj48 Oct 02 '24

I'll check it out!