Question

How can I add to a single droplet two applications (server (spring boot) and client (ReactJs) ?

I’m research about DigitalOcean tool, and I would like to know if is posible create two applications in a single droplet. I have a Spring Book Kotlin Api and a Reactjs Client. Can you help me please to know what i should do?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi @ItsRicmor,

Yes, it’s entirely possible to add as many applications on a droplet as you wish. To setup both applications, you’ll first need to install NodeJS on your droplet. Luckily, DigitalOcean has a pretty good article on how to do so - https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04

As soon as you have finished the article, you can turn your attention to the React Tutorials sections again on DigitalOcean - https://www.digitalocean.com/community/tags/react . It has tons of article on setting and configuring such applications to doing a lot more complex stuff.

Setting up the Spring Book Kotlin Api would most probably require some sort of a WebService like Nginx, for that, you’ll need to follow this tutorial - https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04

Regards, KDSys