How I Stopped Manually Syncing My TypeScript Frontend with Spring Boot Backend
thomasberrens.gumroad.com·5h·
Discuss: DEV
Flag this post

I Wasted An Entire Day Rewriting Fetch Calls

Here’s what happened:

I updated a bunch of entities and endpoints on the backend. Took a few hours. Not bad.

Then I opened my frontend codebase.

Every. Single. Endpoint. Had to be manually rewritten.

Every. Single. Interface. Had to match the new DTOs.

Every. Single. Type. Had to be updated.

Hours later, I finally finished. And I thought: “Why am I doing this? All of this information already exists in my Spring project.”

So I built Spring2TS. I haven’t manually written a fetch call since.

What It Does

Point it at your Spring Boot controllers and it automatically generates:

  • Type-safe TypeScript interfaces for all your DTOs/entities

  • Ready-to-use Axios functions with correct types

  • Full support for @Reque…

Similar Posts

Loading similar posts...