DEV Community

Joel Barbosa
Joel Barbosa

Posted on

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

Top comments (2)

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?

Collapse
 
joelbarbosa_ profile image
Joel Barbosa

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.