Hi, I’m new to using cloud servers and just finished a few web dev projects. I have a portfolio site in react and next.js that I’d like to upload to Digital Ocean. Next, I’d like to add my other react frontend and fullstack projects to this portfolio page. (My source code is on github, and I use MongoLab as cloud database service.)

Do I create multiple sites on Digital Ocean and link them to my portfolio page? I have no idea how to tackle the problem. Could you give me some guidance? Thanks!

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.

Submit an Answer
2 answers

You can start out with a single droplet (server) and use a reverse proxy like NGINX or HAProxy to route traffic based on domain or sub domains to your applications.

I used the How To Set Up a Node.js Application for Production on CentOS 7 configuration for my Node.js applications a few times, and I recently helped to update the tutorial (because I think its a solid foundation).

I have a few sites in production (one is a Next.js app) that are essentially following the same setup. You could use this configuration to host multiple sites/Node.js applications, just by adding extra Node.js processes to PM2 and then the Nginx config.

by Mitchell Anicas
by Haiden Taylor
In this tutorial, we will cover setting up a production-ready Node.js environment that is composed of two CentOS 7 servers; one server will run Node.js applications managed by PM2, while the other will provide users with access to the application through an Nginx reverse proxy to the application server.