I'm Kent C. Dodds. I help people make the world better through quality software. Ask me anything!

View other answers to this thread
Ahmed Rakib Imran's photo

Hey Kent! Thanks for this QA. I just want to know, Should we keep our frontend & backend in separate repos or in same repo? What are some good practices? And what is your recommendation? Thanks.

Kent C. Dodds's photo

Hi Ahmed,

When I was at PayPal, we combined the frontend and backend into a single repo. Mostly because our backend rendered the frontend. We were exploring separating them when I was there, but I left before anyone did that in a substantial way.

There are a lot of trade-offs here. If I had to make a decision about this right now, I'd probably keep them together. Separating them feels like a pre-mature optimization to me. Wait until it's painful to keep them together, then move them at that time.

Good luck!