Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
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?