DEV Community

NikiRoss
NikiRoss

Posted on

Newbie(ish) question

I have a project that I would like to get hosted on the web asap. I already have a domain hosted on Netlify which I would like to use.

My question is, the project utilises a Java backend and React front end. How do I get them both onto my host and operating successfully?

I'm aware that more info may be required so if anyone cares to share their brilliance with me I am happy to provide whatever further information is required.

Top comments (4)

Collapse
 
andrewbaisden profile image
Andrew Baisden

Getting the React frontend online should not be too hard you can do that with Netlify. So you just need to find a platform for hosting your Java backend. Then you update the endpoints so that the frontend is connecting to the online address of the Java backend.

Alternatively you could put put the Java backend in a Docker container then you just need to find a place for the Docker container online then point to it.

Collapse
 
nikiross profile image
NikiRoss

Ok, so they cant both be on the same host then?

Collapse
 
andrewbaisden profile image
Andrew Baisden

They can if the platform supports it. I'm not that familiar with Java but i'm sure there are many platforms out there that you can deploy to like heroku.com/java.

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

The Java half will need to be hosted on it's own server somewhere - then the react piece can be pointed at that server and deployed with GitHub/Netlify :)