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

View other answers to this thread

Learn Something New Everyday,
Connect With The Best Developers!

& 500k+ others use Hashnode actively.

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

Improving the world with quality software · Husband, Father, Latter-day Saint, Teacher, OSS, GDE · http://testingjavascript.com @eggheadio

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!