DEV Community


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

Joel Barbosa
・1 min read

Discussion (2)

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?

joelbarbosa_ profile image
Joel Barbosa Author

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.