TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Startups – Are you on a monorepo or multi-repo set up?

11 点作者 ashiban大约 1 年前
Hello friends! We&#x27;re designing our next iteration of deployment tooling, and wanted to get a feel for whether startups with &lt; 10 engineers structure their code in a monorepo or multi-repo way. (no judgement either way).<p>Do you -<p>1. Mono-repo (frontend + backends + services + infra [...]) all in 1 repo)<p>2. Multi-repo (separate out frontend, from backend &#x2F; each services &#x2F;) or any other cross-repo structure<p>What&#x27;s your guys&#x27; structure?

11 条评论

seattle_spring大约 1 年前
Monorepo, no question. Has had only upside as far as I&#x27;ve experienced.
noop_joe大约 1 年前
We are building an application&#x2F;infra platform, Noop [0], it&#x27;s multi-repo, one key benefit is it facilitates the deployment of different system components with greater isolation.<p>That said, I&#x27;m a big fan of mono-repo. Noop actually supports developing mono-repos in a really interesting way. Here&#x27;s an example [1] Vue + Node backend in one app. It should be pretty straightforward to see how you might be able to extrapolate that to more services when needed by looking at the .noop&#x2F;blueprint.yaml in the linked repo.<p>0. <a href="https:&#x2F;&#x2F;noop.dev" rel="nofollow">https:&#x2F;&#x2F;noop.dev</a> 1. <a href="https:&#x2F;&#x2F;github.com&#x2F;noop-inc&#x2F;template-nodejs-vue">https:&#x2F;&#x2F;github.com&#x2F;noop-inc&#x2F;template-nodejs-vue</a>
whodev12 个月前
Guess it depends on your definition of a mono-repo vs multi-repo. I&#x27;d consider what we have as a mono.<p>We have one repo which is our main web application (user dashboard, landing page, etc..), our API, and our scheduled tasks. With how much code is shared between these services it just makes sense to keep them together.<p>We then have separate repo&#x27;s for other services that aren&#x27;t critical or apart of what was mentioned above.
FlyingAvatar大约 1 年前
Not at a startup, but at a small company (&lt;10 developers) we regretted not doing a mono-repo.<p>We had our own GitLab instance and we were all open source enthusiasts and building micro-ish services, so it seemed natural for us to do multi-repo.<p>Eventually we realized it was creating a lot of unnecessary overhead, as we often were submitting patches for a single ticket to multiple repos which all required separate reviews.
moomoo11大约 1 年前
I have 4 repos.<p>All the backend work is in one repo. The monolith has everything including the core API services, background&#x2F;batch processing, etc.<p>I have a mobile repo but we aren&#x27;t ready at all yet to work on mobile. It is a flutter app, but mostly proof of concept type stuff.<p>Then there&#x27;s 2 repos for web UI. One is a next js app for generating applications for customers, and the other is a standard react SPA which is what customers use to build their applications.
theolivenbaum大约 1 年前
Mono-repo, mono-language, and really enjoying it - enables much easier refactoring and using a single strongly typed language makes lots of issues go away. We do have a few other repos for open source projects or libraries we publish, but the majority of the work is done on our mono-repo.
aranchelk大约 1 年前
Monorepo for client and services - enough code sharing that it would be pretty weird to separate them out.
mgl大约 1 年前
Mono-repos forever and always, lessons learned in the last 20 years ;)<p>Currently running this in a single repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;openkoda&#x2F;openkoda">https:&#x2F;&#x2F;github.com&#x2F;openkoda&#x2F;openkoda</a>
fullstick大约 1 年前
We were on a mono-repo and we&#x27;re moving to multi-repo with the goal of increasing release frequency.
评论 #40355633 未加载
lbhdc大约 1 年前
Monorepo, it has made sharing code and tools a lot easier.
Eridrus大约 1 年前
Monorepo with pants for builds, 4 Engineers.