I'm fairly new to MERN and we're trying to deploy an app to DigitalOcean with one main domain and 2 subdomain.
we have the following setup for our app.
Three separate repos:
We have 3 domains / subdomains registered in the following format:
domain.com (user)
admin.domain.com (admin)
api.domain.com (api)
Questions:
Other considerations: Do we need to use Nginx? Pm2? We will be using mongodb as our database.
Thank you!
I would suggest you to use Nginx as a web server. PM2 would not be a choice because it's not probably a server by itself.