I'm not really sure what to answer. I usually create three folders:

  • server/ with the backend code.
  • web/ with the frontend code.
  • shared/ with the code that I use both in the backend and frontend.

I make sure to install all frontend dependencies as dev dependencies, and I use foreman to start the backend and run webpack with one command.

Is there anything in particular that you find complex or challenging about having backend and frontend code in the same repo?

 

I am doing a new architecture of the project it is React and NodeJs in the backend API. So I think Monorepo to the project is more convenient. And I would like to know how you are doing yours.

Classic DEV Post from Jan 23

Lost potential of personal computing

Do you remember when computers were fun to explore?