DEV Community

Discussion on: How do you use monorepo with #lerna to your FrontEnd and BackEnd?

Collapse
 
avalander profile image
Avalander • Edited

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?