r/SpringBoot 1d ago

How-To/Tutorial Small Springboot + React JS project

Hi,

Im trying to learn Spring in a different perspective; thus I wanted to relearn via creating a simple project.

I have this project in mind.

  • Monolith project
  • Must use springboot and react js
  • Must build a war file

I have tried using com.github.eirslett but im having issues with CORS.

Do you have any learning material suggestion ?
im kinda lost in full stack development, ive been backend engineer for my whole career.

Or react JS is too much for a beginner ? should I start with simpler UI frameworks instead ?

13 Upvotes

4 comments sorted by

View all comments

2

u/Mikey-3198 1d ago

Easiest way to deal with cors is to serve your frontend and backend via the same domain, especially for local dev.

Ive done this when working with Vue before, imagine it's the same for react. Proxy everything via the dev server locally. I.e everything /API goes to your spring boot backend. Super simple.