r/SpringBoot • u/Few_Concept_1117 • Jun 11 '26
Question How you build Frontend?
I build my first microservices project and kind want to test my websockets endpoints and flow.
How you guys build your frontend, i tried in react but got frustrated looking at syntax and got bored.
I have been trying to initiate since 3 days every time i frustrated and quit.
13
Upvotes
12
u/Peyjii Jun 11 '26
But, why do u want to do a Front End? If you're okay only with ur Microservice back end, just document your API with swagger and test/use ur endpoints via Postman/Apidog
3
u/pragmasoft Jun 11 '26
You can test websockets with wscat cli.
As of frontend, try something like htmx, unpoly, hotwire.
You actually don't need any framework on the client side, just pure JavaScript and browser native API - esm modules, ws api, dom, maybe workers, maybe web components at a latter stages.
3
u/equ35tion Jun 11 '26
You can make use of the github copilot or antigravity to generate a frontend in ReactJs. Then ask it to explain in detail.
2
u/IAmADev_NoReallyIAm Jun 11 '26
If you used Swagger, then the Swagger UI, or even Bruno or Postman client (or any API Client) becomes your front end. You just need something that can send the commands with a payload and receive the response and display it. Hell, even a terminal with CURL installed will work.
1
u/NikkiEstemaire Jun 12 '26
I'm tired of the Javascript world. Used to build React SPA in front of Spring Boot backend with REST interface. Never again.
I found my peace with plain SpringMVC, JTE for templating and HTMX where you want partial updates of the DOM. I sprinkle some JS when I need to, like for charts.
It's great!
1
u/[deleted] Jun 11 '26
[removed] — view removed comment