Question

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

Posted February 27, 2020 171 views
APIJavaApplicationsReact

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?

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.

×
1 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

by Brennen Bearnes
by Kathleen Juell
Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly. In this guide, we'll show you how to get started with Node.js on an Ubuntu 18.04 server.
Submit an Answer