- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "One or multiple Git repos for project code, DB, etc?"
Collapse
-
Yes, I was thinking of a dedicated artifact repo/tool. There's a bunch of them out there, nexus, artifactory, cloudrepo etc. They are designed to handle diverse content, unlike source control repos/tools. There are LFS implementations of these things, so you could configure LFS to use one of them.
-
I hadn't realised that Git LFS integrates so tightly, that you pretend it's the same repo.
Were you talking about using a dedicated artefact store JB, or LFS? If the former, what sort of thing?
Leave a comment:
-
Originally posted by d000hg View Post
Seems a bit of a judgement call what goes in and what doesn't. I'm going to look into Git LFS but MS themselves say:What we call 'small' and 'frequently' updated is of course somewhat subjective.
Otherwise, I agree with BDP that the nature of the architecture or separation of concerns should provide a big clue about how many repos you need. If you can deploy it independently, you probably want a separate repo for it.
There is a degree of YMMV in all of this, though.
Leave a comment:
-
Originally posted by jamesbrown View PostYou don't want binary artifacts in a source code repo, you want an artifact repo for those.Store small, infrequently updated binary sources in Git
Binary source files that are infrequently updated will have relatively few versions committed, and will not take up very much space provided that their file size is small. Images for the web, icons, and other smaller art assets can fall into this category. It's better to store these files in Git with the rest of your source so your team can use consistent workflow.
Leave a comment:
-
If the target architecture is Microservices then probably worth having multiple repos, otherwise one would do.
Leave a comment:
-
You don't want binary artifacts in a source code repo, you want an artifact repo for those.
Leave a comment:
-
Depends on the size of the team and the size of the project. If it's a small team and a small project - monorepo makes sense. If you have several development teams and the code base is massive then you should have separate repos.
Leave a comment:
-
Will be interesting to see what other people do.
But I tend to put most things in the same repo only projects that are actually shared between other solutions do I separate out and go to the trouble of making them nuget packages.
So, the UI, db repository, database project (db scripts, that automatically update the db when doing a release) are all in separate projects under one solution and all in same git repo. But say I have a solution for integrating with 3rd party api's etc I will put that into its own repo and reference it via nuget. That gives me the ability to version it and reference the correct version in other solutions.
Scheduled jobs or azure functions etc all go in their own repos even though they are related to the same project or client.
When source code is pushed I automatically deploy to the dev environment and the dev database is automatically updated. UAT deployment is a one click job. Live deployment is the same though it goes to staging first and I swap between staging and production manually. This is a great timesaver especially when a client has a number of whitelabel sites to update.
Not saying this is the best way to do it and open to learning but it seems to be a good balance between getting things down and reusing code etc.
Leave a comment:
-
One or multiple Git repos for project code, DB, etc?
I've worked on projects where the entire project is in a single repository and others where source code is in one repo, database in another, and docs in a third.
Trying to rationalise things on a current project as we migrate toolsets and I wondered is there a best practice these days for how to organise things. You probably have:- source code
- DB scripts
- Other textual things like HTML/CSS/registry scripts/JSON config
- Maybe some system data - could be XML, XLS, who knows
- Resources like icons, images, etc
- Documentation
Not been on a greenfield project for ages to see how people do things in an ideal world?Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- IT contractor jobs agencies plough on with 'ambiguous, burdensome' IR35 reform Mar 22 10:57
- Chancellor, ignoring the hugely unjust Loan Charge won't make 150 parliamentarians (or us) go away Mar 22 09:33
- Insidious IR35 doubling its yield is an indictment Lord Bridges is right to call out Mar 21 10:05
- Government trots out 2022 report to keep Single Enforcement Body supporters happy Mar 20 09:35
- Where Spring Budget 2023 says the taxman's gloves are coming off Mar 20 07:23
- Spring Budget 2023: Over-50s tipped to take inside IR35 contracts via umbrella companies Mar 16 08:29
- What a contractor accountant calculates Spring Budget 2023 to mean for limited companies Mar 16 07:58
- Contractor sector condemns Spring Budget 2023 as a totally wasted opportunity Mar 15 23:00
- Spring Budget 2023: chancellor's full speech Mar 15 22:11
- 10 things umbrella company regulation must contain, at today's Budget 2023 or beyond Mar 15 20:44
Leave a comment: