How to deploy my Nodejs in a monorepo-ish repo?
So I have a project structure that looks like this:
- client - package.json - server - package.json - package.json
package.json at root level, I have a npm script that starts both client and server for local development.
Now, I’m lost at deploying my client(React SPA) and server(Expressjs/Posgresql/redis) to Digital Ocean.
From what I’ve gathered with respect to deploying Nodejs to DO( I haven’t even explored deploying front-end yet :|), it seems common to do ‘git clone <nodejs_project.git>’ in droplet. But I’m clueless how to make that work with my current project structure above.
What do you guys think is the best practice here that work well with DO?