2

To date, we have implemented a multi-repo approach in which each project, or for larger projects, each tier, has its own repo. Code is written in Typescript, Javascript, C#, PowerShell and T-SQL. We currently have 75-100 applications. Some are strictly server-side, some strictly client-side, most are mixed - a client application that calls a server endpoint which calls into a DB.

I've been researching monorerpos and can't find anything that discusses mixing server code (C#, Powershell, T-SQL) with client code (Typescript, Javascript) in the same monorepo. Is this a good idea? What are the benefits/drawbacks? In all my reading on monorepos in general, as well as specific toolchains (Microsoft Rush and Nrwl Nx primarily) I can't find any mention of this approach and I can't figure out whether it's because it's no big deal or because it's a stupid idea prone to fail.

Any information and/or links to resources where I can read up on this would be helpful.

Thanks,

TTE.

1

2 Answers 2

0

Yes it is possible, but the question is: why your company required separate repositories in the first place? Usually when a project reaches a stable version the GUI changes more often than the backend. If the employer want to keep track of the changes and the costs and you keep backend and GUI on the same project you will end up providing to your managers a mixed up history of the changes that is more difficult to follow. Then there is the issue with granting access to the developers. If you are going to do everything by yourself it would be no problem. But if the team grows and people get specialised on one of the two part is it still worth to grant them access to the entire code base?

So a single repository for a small project that is beginning just now or a small company with few developers would be all right. But then deciding if it's worth it or not depends both on technical factors like the deployment practices and non technical factors like the organisation in your company.

1
  • 1
    It isn't that the company required individual repos, that's just what people did. We're at a point where we are growing now and looking for the best path forward. Dec 22, 2021 at 15:26
0

Should be fine and makes keeping them in sync easier. Before making a commit or merging a branch one can run the complete test suite including integration tests to validate minimum compatibility requirements.

If fact I'd do this by default, unless they were huge or some other reason like different teams or companies were developing them. Or perhaps one part is mature, and the other is rapidly developing. But, these should be uncommon cases.

(I'd still keep associated projects that aren't directly coupled separate however.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.