DEV Community

Mallikarjuna N
Mallikarjuna N

Posted on

Reactjs for front-end with Java backend

Hi all,

This is the first time we are going to use reactjs in front-end with a combination of Spring boot project. Spring framework is using for backend and exposed API to access data from the server.

Can we use reactjs without installation in the server? by using CDN in the HTML file can we use it. if we use CDN based reactjs library, can we able to get benefits from reactjs(components and other features).

How can we use reactjs with complete features with java platform?
please guide to choose the right path for further development. and if you have documents link then please share it with us.

Top comments (1)

Collapse
 
sassineasmar profile image
Sassine El-Asmar

I have a project like this where the back is SpringBoot spring.io/ and the front is made with (ReactJs pt-br.reactjs.org/ with ReduxJs redux.js.org/ ) and a BFF layer (back for front) in NodeJs nodejs.org/en/ responsible for doing the routes of the front which results in the spring boot api call getting thus the minimum possible exposure.

And I use PM2 pm2.keymetrics.io/ to start applying the node as a microservice and cluster control.

If you don't want to use back for front in node you can use spring to create an OpenApi to encapsulate your api routes. ;)