Question

How to deploy my Nodejs in a monorepo-ish repo?

Posted December 28, 2019 333 views
Node.jsDeploymentReact

So I have a project structure that looks like this:

- client
  - package.json
- server
  - package.json
- package.json  

In the 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?

0 answers
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!