Should I have my backend and my frontend in the same repo ?

pol

Pol

Posted on May 29, 2020

Should I have my backend and my frontend in the same repo ?

Hi everyone,

I used to develop my app with express and ejs. With this configuration, I don’t really have a front/back-end separation.

I recently started learning React and with it the separation of the backend with my API, database, ... and the front-end with my react app.

So, I was wondering, do I need to separate my backend repo and my frontend repo ? It seems kinda strange to do so because, most of the time, a new feature on my frontend means new changes on the backend.

What should I do to practically put both on the same repo ? Having tow sub folders ? And what about Heroku ? I can’t configure it to build a subfolder app.

How are you managing that in your projects ?

💖 💪 🙅 🚩
pol
Pol

Posted on May 29, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related